mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 12:32:31 +01:00
Fixes issue with movies with same name but different years being downloaded.
This commit is contained in:
parent
bc1a47ff5a
commit
fe0dfef83c
@ -359,6 +359,8 @@ private Movie GetMovie(ParsedMovieInfo parsedEpisodeInfo, string imdbId, SearchC
|
||||
{
|
||||
var possibleTitles = new List<string>();
|
||||
|
||||
Movie possibleMovie = null;
|
||||
|
||||
possibleTitles.Add(searchCriteria.Movie.CleanTitle);
|
||||
|
||||
foreach (string altTitle in searchCriteria.Movie.AlternativeTitles)
|
||||
@ -370,7 +372,7 @@ private Movie GetMovie(ParsedMovieInfo parsedEpisodeInfo, string imdbId, SearchC
|
||||
{
|
||||
if (title == parsedEpisodeInfo.MovieTitle.CleanSeriesTitle())
|
||||
{
|
||||
return searchCriteria.Movie;
|
||||
possibleMovie = searchCriteria.Movie;
|
||||
}
|
||||
|
||||
foreach (KeyValuePair<string, string> entry in romanNumeralsMapper)
|
||||
@ -380,16 +382,22 @@ private Movie GetMovie(ParsedMovieInfo parsedEpisodeInfo, string imdbId, SearchC
|
||||
|
||||
if (title.Replace(num, roman) == parsedEpisodeInfo.MovieTitle.CleanSeriesTitle())
|
||||
{
|
||||
return searchCriteria.Movie;
|
||||
possibleMovie = searchCriteria.Movie;
|
||||
}
|
||||
|
||||
if (title.Replace(roman, num) == parsedEpisodeInfo.MovieTitle.CleanSeriesTitle())
|
||||
{
|
||||
return searchCriteria.Movie;
|
||||
possibleMovie = searchCriteria.Movie;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (possibleMovie != null && (parsedEpisodeInfo.Year < 1800 || possibleMovie.Year == parsedEpisodeInfo.Year))
|
||||
{
|
||||
return possibleMovie;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Movie movie = null;
|
||||
|
Loading…
Reference in New Issue
Block a user