Apply suggestions from code review

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
Martin Vandenbussche 2024-01-16 08:50:39 +01:00 committed by GitHub
parent c03f5ca6c3
commit 9ff9c8f0c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,11 +468,11 @@ namespace MediaBrowser.XbmcMetadata.Parsers
BaseNfoSaver.YouTubeWatchUrl,
StringComparison.OrdinalIgnoreCase));
var suggested_url = trailer.Replace(
var suggestedUrl = trailer.Replace(
"plugin://plugin.video.youtube/?action=play_video&videoid=",
"plugin://plugin.video.youtube/play/?video_id=",
StringComparison.OrdinalIgnoreCase);
Logger.LogWarning("Trailer URL uses a deprecated format : {URL}. Using {URL_NEW} instead is advised.", [trailer, suggested_url]);
Logger.LogWarning("Trailer URL uses a deprecated format : {Url}. Using {NewUrl} instead is advised.", [trailer, suggestedUrl]);
}
else if (trailer.StartsWith("plugin://plugin.video.youtube/play/?video_id=", StringComparison.OrdinalIgnoreCase))
{