Fixed: Parsing service error for multi language releases when movie not mapped

pull/6347/head^2
Robin Dadswell 4 years ago committed by Qstick
parent 627a39b8fc
commit 3c11e934a8

@ -142,10 +142,14 @@ namespace NzbDrone.Core.Parser
if (parsedMovieInfo.Languages.Contains(Language.Original)) if (parsedMovieInfo.Languages.Contains(Language.Original))
{ {
parsedMovieInfo.Languages.Remove(Language.Original); parsedMovieInfo.Languages.Remove(Language.Original);
if (!parsedMovieInfo.Languages.Contains(result.Movie.OriginalLanguage)) if (!parsedMovieInfo.Languages.Contains(result.Movie.OriginalLanguage) && result.Movie != null)
{ {
parsedMovieInfo.Languages.Add(result.Movie.OriginalLanguage); parsedMovieInfo.Languages.Add(result.Movie.OriginalLanguage);
} }
else
{
parsedMovieInfo.Languages.Add(Language.Unknown);
}
} }
result.RemoteMovie.ParsedMovieInfo = parsedMovieInfo; result.RemoteMovie.ParsedMovieInfo = parsedMovieInfo;

Loading…
Cancel
Save