Fixed: Filtering editions by language

pull/1304/head
ta264 3 years ago
parent ca8f768f84
commit 78d073a0a8

@ -181,7 +181,7 @@ namespace NzbDrone.Core.Profiles.Metadata
var localHash = new HashSet<string>(localEditions.Where(x => x.ManualAdd).Select(x => x.ForeignEditionId));
localHash.UnionWith(localFiles.Select(x => x.Edition.Value.ForeignEditionId));
FilterByPredicate(hash, x => x.ForeignEditionId, localHash, profile, (x, p) => !allowedLanguages.Any() || allowedLanguages.Contains(x.Language?.CanonicalizeLanguage() ?? "null"), "edition language not allowed");
FilterByPredicate(hash, x => x.ForeignEditionId, localHash, profile, (x, p) => !allowedLanguages.Any() || allowedLanguages.Contains(x.Language?.CanonicalizeLanguage()), "edition language not allowed");
FilterByPredicate(hash, x => x.ForeignEditionId, localHash, profile, (x, p) => !p.SkipMissingIsbn || x.Isbn13.IsNotNullOrWhiteSpace() || x.Asin.IsNotNullOrWhiteSpace(), "isbn and asin is missing");
FilterByPredicate(hash, x => x.ForeignEditionId, localHash, profile, (x, p) => !MatchesTerms(x.Title, p.Ignored), "contains ignored terms");

@ -12,7 +12,7 @@ namespace Readarr.Api.V1.Profiles.Metadata
{
var profile = new MetadataProfile
{
AllowedLanguages = "eng, en-US, en-GB"
AllowedLanguages = "eng"
};
return profile.ToResource();

Loading…
Cancel
Save