From 3c11e934a8933801e8e7363a62d7075be6425f2b Mon Sep 17 00:00:00 2001 From: Robin Dadswell <19610103+RobinDadswell@users.noreply.github.com> Date: Sun, 23 May 2021 20:31:28 +0100 Subject: [PATCH] Fixed: Parsing service error for multi language releases when movie not mapped --- src/NzbDrone.Core/Parser/ParsingService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index 648a4fa73..126cbd614 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -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;