Really fix Original Language in Language CF Specification

Co-Authored-By: François-Xavier Payet <fx.payet@tfdn.org>
pull/7481/head
Qstick 2 years ago
parent cc6ca0b067
commit 3b191caf16

@ -34,7 +34,7 @@ namespace NzbDrone.Core.CustomFormats
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;

Loading…
Cancel
Save