TMDB: Include year in search

This commit is contained in:
Bond_009 2021-02-18 22:54:12 +01:00
parent 467cd9227e
commit c1b17b2fa4

View File

@ -48,8 +48,9 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Movies
if (tmdbId == 0)
{
var movieResults = await _tmdbClientManager
.SearchMovieAsync(searchInfo.Name, searchInfo.MetadataLanguage, cancellationToken)
.SearchMovieAsync(searchInfo.Name, searchInfo.Year ?? 0, searchInfo.MetadataLanguage, cancellationToken)
.ConfigureAwait(false);
var remoteSearchResults = new List<RemoteSearchResult>();
for (var i = 0; i < movieResults.Count; i++)
{