mirror of
https://github.com/Readarr/Readarr
synced 2026-01-02 21:53:18 +01:00
Fixed: Cutoff Unmet showing items above lowest accepted quality when upgrades are disabled
Closes #1688
This commit is contained in:
parent
dbb6ef7664
commit
de46816cdb
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ public PagingSpec<Book> BooksWhereCutoffUnmet(PagingSpec<Book> pagingSpec)
|
|||
//Get all items less than the cutoff
|
||||
foreach (var profile in profiles)
|
||||
{
|
||||
var cutoffIndex = profile.GetIndex(profile.Cutoff);
|
||||
var cutoff = profile.UpgradeAllowed ? profile.Cutoff : profile.FirstAllowedQuality().Id;
|
||||
var cutoffIndex = profile.GetIndex(cutoff);
|
||||
var belowCutoff = profile.Items.Take(cutoffIndex.Index).ToList();
|
||||
|
||||
if (belowCutoff.Any())
|
||||
|
|
|
|||
Loading…
Reference in a new issue