mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-02-26 17:55:51 +00:00
Fixed: Filtering editions by language
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user