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