Fixed matching wrong movies from database when searching.

This commit is contained in:
Leonardo Galli
2017-01-05 13:23:22 +01:00
parent 70c8228605
commit 6d5e9ad4a1

View File

@@ -387,7 +387,17 @@ namespace NzbDrone.Core.Parser
}
Movie movie = _movieService.FindByTitle(parsedEpisodeInfo.MovieTitle); //Todo: same as above!
Movie movie = null;
if (searchCriteria == null)
{
movie = _movieService.FindByTitle(parsedEpisodeInfo.MovieTitle); //Todo: same as above!
return movie;
}
if (movie == null && imdbId.IsNotNullOrWhiteSpace())
{