mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Parsing service error for multi language releases when movie not mapped
This commit is contained in:
parent
627a39b8fc
commit
3c11e934a8
@ -142,10 +142,14 @@ public MappingResult Map(ParsedMovieInfo parsedMovieInfo, string imdbId, SearchC
|
||||
if (parsedMovieInfo.Languages.Contains(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);
|
||||
}
|
||||
else
|
||||
{
|
||||
parsedMovieInfo.Languages.Add(Language.Unknown);
|
||||
}
|
||||
}
|
||||
|
||||
result.RemoteMovie.ParsedMovieInfo = parsedMovieInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user