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

Co-authored-by: Vasily <JustAMan@users.noreply.github.com>
This commit is contained in:
Erik Rigtorp 2020-05-14 11:56:25 -07:00 committed by GitHub
parent f7c44565fc
commit fa1fef1099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();