diff --git a/NfoMetadata/Parsers/BaseNfoParser.cs b/NfoMetadata/Parsers/BaseNfoParser.cs index 0190eb8..cc41516 100644 --- a/NfoMetadata/Parsers/BaseNfoParser.cs +++ b/NfoMetadata/Parsers/BaseNfoParser.cs @@ -633,7 +633,8 @@ protected virtual async Task FetchDataFromXmlNode(XmlReader reader, MetadataResu if (!string.IsNullOrWhiteSpace(val)) { - val = val.Replace("plugin://plugin.video.youtube/?action=play_video&videoid=", BaseNfoSaver.YouTubeWatchUrl, StringComparison.OrdinalIgnoreCase).Replace("plugin://plugin.video.youtube/play/?video_id=", BaseNfoSaver.YouTubeWatchUrl, StringComparison.OrdinalIgnoreCase); + val = val.Replace("plugin://plugin.video.youtube/?action=play_video&videoid=", BaseNfoSaver.YouTubeWatchUrl, StringComparison.OrdinalIgnoreCase) + .Replace("plugin://plugin.video.youtube/play/?video_id=", BaseNfoSaver.YouTubeWatchUrl, StringComparison.OrdinalIgnoreCase); item.AddTrailerUrl(val); } diff --git a/NfoMetadata/Savers/BaseNfoSaver.cs b/NfoMetadata/Savers/BaseNfoSaver.cs index fb4ae94..7fa1b2a 100644 --- a/NfoMetadata/Savers/BaseNfoSaver.cs +++ b/NfoMetadata/Savers/BaseNfoSaver.cs @@ -880,7 +880,7 @@ private void AddCommonNodes(BaseItem item, LibraryOptions libraryOptions, XmlWri private string GetOutputTrailerUrl(string url) { // This is what xbmc expects - return url.Replace(YouTubeWatchUrl, "plugin://plugin.video.youtube/?action=play_video&videoid=", StringComparison.OrdinalIgnoreCase); + return url.Replace(YouTubeWatchUrl, "plugin://plugin.video.youtube/play/?video_id=", StringComparison.OrdinalIgnoreCase); } private void AddImages(BaseItem item, XmlWriter writer, ILibraryManager libraryManager, LibraryOptions libraryOptions)