1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Really fix Original Language in Language CF Specification

Co-Authored-By: François-Xavier Payet <fx.payet@tfdn.org>
This commit is contained in:
Qstick 2022-08-13 12:02:10 -05:00
parent cc6ca0b067
commit 3b191caf16

View File

@ -34,7 +34,7 @@ public class LanguageSpecification : CustomFormatSpecificationBase
protected override bool IsSatisfiedByWithoutNegate(ParsedMovieInfo movieInfo) 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)movieInfo.ExtraInfo["OriginalLanguage"]
: (Language)Value; : (Language)Value;
return movieInfo?.Languages?.Contains(comparedLanguage) ?? false; return movieInfo?.Languages?.Contains(comparedLanguage) ?? false;