Fixed: Cutoff Unmet showing items above lowest accepted quality when upgrades are disabled

Closes #1688
pull/2165/head
Qstick 1 year ago
parent dbb6ef7664
commit de46816cdb

@ -31,7 +31,8 @@ namespace NzbDrone.Core.Books
//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…
Cancel
Save