From e071850d4c4b114c1ddec9ce8ca2457cfad0e2e0 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Mon, 19 Feb 2018 13:02:55 +0100 Subject: [PATCH] Fixed: Alt Titles from TMDB not getting added when mappings server throws 404 Fixes #2535 --- src/NzbDrone.Core/Tv/RefreshMovieService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Tv/RefreshMovieService.cs b/src/NzbDrone.Core/Tv/RefreshMovieService.cs index 3f2de1377..707ae7eae 100644 --- a/src/NzbDrone.Core/Tv/RefreshMovieService.cs +++ b/src/NzbDrone.Core/Tv/RefreshMovieService.cs @@ -114,11 +114,11 @@ namespace NzbDrone.Core.Tv 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,