From de46816cdb527cc7542afdefce9dc960fc72df02 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 30 Jan 2023 22:02:53 -0600 Subject: [PATCH] Fixed: Cutoff Unmet showing items above lowest accepted quality when upgrades are disabled Closes #1688 --- src/NzbDrone.Core/Books/Services/BookCutoffService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Books/Services/BookCutoffService.cs b/src/NzbDrone.Core/Books/Services/BookCutoffService.cs index 302b41a98..dfa25e1f5 100644 --- a/src/NzbDrone.Core/Books/Services/BookCutoffService.cs +++ b/src/NzbDrone.Core/Books/Services/BookCutoffService.cs @@ -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())