Merge pull request #5263 from Bond-009/tmdb

TMDB: Include year in search
(cherry picked from commit 5379fa0bd0)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
pull/5296/head
Andrew Rabert 4 years ago committed by Joshua M. Boniface
parent bd89cdf8d2
commit fecab1d549

@ -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++)
{

Loading…
Cancel
Save