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:
parent
627a39b8fc
commit
3c11e934a8
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user