|
|
@ -31,7 +31,8 @@ namespace NzbDrone.Core.Books
|
|
|
|
//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())
|
|
|
|