From 418cb78f2915c2113db00efbc8916e45984ed01b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 22 May 2022 16:44:12 -0700 Subject: [PATCH] Fixed: Cutoff Unmet showing items above lowest accepted quality when upgrades are disabled Closes #2819 (cherry picked from commit d48950ec3c243c54a30770d32fd39bf6b9b48bb8) --- src/NzbDrone.Core/Music/Services/AlbumCutoffService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Music/Services/AlbumCutoffService.cs b/src/NzbDrone.Core/Music/Services/AlbumCutoffService.cs index 6033d24c4..115cfdedc 100644 --- a/src/NzbDrone.Core/Music/Services/AlbumCutoffService.cs +++ b/src/NzbDrone.Core/Music/Services/AlbumCutoffService.cs @@ -31,7 +31,8 @@ namespace NzbDrone.Core.Music // 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())