1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

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

This commit is contained in:
Robin Dadswell 2021-05-23 20:31:28 +01:00 committed by Qstick
parent 627a39b8fc
commit 3c11e934a8

View File

@ -142,10 +142,14 @@ public MappingResult Map(ParsedMovieInfo parsedMovieInfo, string imdbId, SearchC
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;