From 3b191caf16da82696a85cd0b8646280f60f56a09 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 13 Aug 2022 12:02:10 -0500 Subject: [PATCH] Really fix Original Language in Language CF Specification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: François-Xavier Payet --- .../CustomFormats/Specifications/LanguageSpecification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs b/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs index 65b26e5a3..233bde3b8 100644 --- a/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs +++ b/src/NzbDrone.Core/CustomFormats/Specifications/LanguageSpecification.cs @@ -34,7 +34,7 @@ public class LanguageSpecification : CustomFormatSpecificationBase protected override bool IsSatisfiedByWithoutNegate(ParsedMovieInfo movieInfo) { - var comparedLanguage = movieInfo != null && movieInfo.ExtraInfo.ContainsKey("OriginalLanguage") + var comparedLanguage = movieInfo != null && Value == Language.Original.Id && movieInfo.ExtraInfo.ContainsKey("OriginalLanguage") ? (Language)movieInfo.ExtraInfo["OriginalLanguage"] : (Language)Value; return movieInfo?.Languages?.Contains(comparedLanguage) ?? false;