Update MediaBrowser.Providers/Tmdb/Movies/TmdbSearch.cs

Co-authored-by: Vasily <JustAMan@users.noreply.github.com>
pull/3056/head
Erik Rigtorp 5 years ago committed by GitHub
parent f7c44565fc
commit fa1fef1099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,7 +80,7 @@ namespace MediaBrowser.Providers.Tmdb.Movies
var parsedName = _libraryManager.ParseName(name);
var yearInName = parsedName.Year;
name = parsedName.Name;
year = year ?? yearInName;
year ??= yearInName;
_logger.LogInformation("TmdbSearch: Finding id for item: {0} ({1})", name, year);
var language = idInfo.MetadataLanguage.ToLowerInvariant();

Loading…
Cancel
Save