Fixed: Pushed releases not being properly rejected

(cherry picked from commit 07f816ffb18ac34090c2f8ba25147737299b361d)

Closes #4144
pull/4438/head
Mark McDowall 8 months ago committed by Bogdan
parent a165965a7e
commit a82a1d46ae

@ -131,6 +131,11 @@ namespace NzbDrone.Core.Download
return ProcessedDecisionResult.Skipped;
}
if (!IsQualifiedReport(decision))
{
return ProcessedDecisionResult.Rejected;
}
if (decision.TemporarilyRejected)
{
_pendingReleaseService.Add(decision, PendingReleaseReason.Delay);
@ -149,9 +154,14 @@ namespace NzbDrone.Core.Download
}
internal List<DownloadDecision> GetQualifiedReports(IEnumerable<DownloadDecision> decisions)
{
return decisions.Where(IsQualifiedReport).ToList();
}
internal bool IsQualifiedReport(DownloadDecision decision)
{
// Process both approved and temporarily rejected
return decisions.Where(c => (c.Approved || c.TemporarilyRejected) && c.RemoteAlbum.Albums.Any()).ToList();
return (decision.Approved || decision.TemporarilyRejected) && decision.RemoteAlbum.Albums.Any();
}
private bool IsAlbumProcessed(List<DownloadDecision> decisions, DownloadDecision report)

Loading…
Cancel
Save