1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-26 16:13:19 +00:00

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 @@ private Movie GetMovie(ParsedMovieInfo parsedEpisodeInfo, string imdbId, SearchC
} }
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()) if (movie == null && imdbId.IsNotNullOrWhiteSpace())
{ {