mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Fixed: Cutoff Unmet showing items above lowest accepted quality when upgrades are disabled
Closes #2819 (cherry picked from commit d48950ec3c243c54a30770d32fd39bf6b9b48bb8)
This commit is contained in:
parent
0592f35aee
commit
418cb78f29
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ namespace NzbDrone.Core.Music
|
||||||
// Get all items less than the cutoff
|
// Get all items less than the cutoff
|
||||||
foreach (var profile in profiles)
|
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();
|
var belowCutoff = profile.Items.Take(cutoffIndex.Index).ToList();
|
||||||
|
|
||||||
if (belowCutoff.Any())
|
if (belowCutoff.Any())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue