1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-26 17:59:14 +00:00

Fixed: Alt Titles from TMDB not getting added when mappings server throws 404

Fixes #2535
This commit is contained in:
Leonardo Galli 2018-02-19 13:02:55 +01:00
parent fa212872ab
commit e071850d4c

View file

@ -114,11 +114,11 @@ private void RefreshMovieInfo(Movie movie)
try
{
movie.AlternativeTitles.AddRange(_titleService.AddAltTitles(movieInfo.AlternativeTitles, movie));
var mappings = _apiClient.AlternativeTitlesAndYearForMovie(movieInfo.TmdbId);
var mappingsTitles = mappings.Item1;
movie.AlternativeTitles.AddRange(_titleService.AddAltTitles(movieInfo.AlternativeTitles, movie));
_titleService.DeleteNotEnoughVotes(mappingsTitles);
mappingsTitles = mappingsTitles.ExceptBy(t => t.CleanTitle, movie.AlternativeTitles,