Fixed: Queue error for language custom format on unknown items

pull/8285/head
Qstick 2 years ago
parent d35c6683e9
commit 7d9183ef12

@ -34,9 +34,10 @@ namespace NzbDrone.Core.CustomFormats
protected override bool IsSatisfiedByWithoutNegate(CustomFormatInput input)
{
var comparedLanguage = input.MovieInfo != null && Value == Language.Original.Id && input.Movie.MovieMetadata.Value.OriginalLanguage != Language.Unknown
var comparedLanguage = input.MovieInfo != null && input.Movie != null && Value == Language.Original.Id && input.Movie.MovieMetadata.Value.OriginalLanguage != Language.Unknown
? input.Movie.MovieMetadata.Value.OriginalLanguage
: (Language)Value;
return input?.Languages?.Contains(comparedLanguage) ?? false;
}

Loading…
Cancel
Save