mirror of
https://github.com/Readarr/Readarr
synced 2026-01-30 19:33:07 +01:00
Fixed: Filter by page count after filtering editions
This commit is contained in:
parent
1e82c7a67a
commit
6325432a34
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,6 @@ private List<Book> FilterBooks(IEnumerable<Book> remoteBooks, List<Book> localBo
|
|||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => !p.SkipMissingDate || x.ReleaseDate.HasValue, "release date is missing");
|
||||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => !p.SkipPartsAndSets || !IsPartOrSet(x, seriesLinks.GetValueOrDefault(x), titles), "book is part of set");
|
||||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => !p.SkipSeriesSecondary || !seriesLinks.ContainsKey(x) || seriesLinks[x].Any(y => y.IsPrimary), "book is a secondary series item");
|
||||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => x.Editions.Value.Any(e => e.PageCount > p.MinPages) || x.Editions.Value.All(e => e.PageCount == 0), "minimum page count not met");
|
||||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => !MatchesTerms(x.Title, p.Ignored), "contains ignored terms");
|
||||
|
||||
foreach (var book in hash)
|
||||
|
|
@ -167,6 +166,7 @@ private List<Book> FilterBooks(IEnumerable<Book> remoteBooks, List<Book> localBo
|
|||
book.Editions = FilterEditions(book.Editions.Value, localEditions, localFiles, profile);
|
||||
}
|
||||
|
||||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => x.Editions.Value.Any(e => e.PageCount > p.MinPages) || x.Editions.Value.All(e => e.PageCount == 0), "minimum page count not met");
|
||||
FilterByPredicate(hash, x => x.ForeignBookId, localHash, profile, (x, p) => x.Editions.Value.Any(), "all editions filtered out");
|
||||
|
||||
return hash.ToList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue