mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
parent
40dc808f61
commit
4890972e16
@ -34,7 +34,7 @@ public class LanguageSpecification : CustomFormatSpecificationBase
|
|||||||
|
|
||||||
protected override bool IsSatisfiedByWithoutNegate(ParsedMovieInfo movieInfo)
|
protected override bool IsSatisfiedByWithoutNegate(ParsedMovieInfo movieInfo)
|
||||||
{
|
{
|
||||||
var comparedLanguage = movieInfo != null && Name == "Original" && movieInfo.ExtraInfo.ContainsKey("OriginalLanguage")
|
var comparedLanguage = movieInfo != null && 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