mirror of
https://github.com/Radarr/Radarr
synced 2025-02-23 23:01:10 +00:00
Fixed: Pushed releases not being properly rejected
(cherry picked from commit 07f816ffb18ac34090c2f8ba25147737299b361d) Closes #9204
This commit is contained in:
parent
ce145a3050
commit
3248e7f476
1 changed files with 11 additions and 1 deletions
|
@ -131,6 +131,11 @@ public async Task<ProcessedDecisionResult> ProcessDecision(DownloadDecision deci
|
|||
return ProcessedDecisionResult.Skipped;
|
||||
}
|
||||
|
||||
if (!IsQualifiedReport(decision))
|
||||
{
|
||||
return ProcessedDecisionResult.Rejected;
|
||||
}
|
||||
|
||||
if (decision.TemporarilyRejected)
|
||||
{
|
||||
_pendingReleaseService.Add(decision, PendingReleaseReason.Delay);
|
||||
|
@ -149,9 +154,14 @@ public async Task<ProcessedDecisionResult> ProcessDecision(DownloadDecision deci
|
|||
}
|
||||
|
||||
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.RemoteMovie.Movie != null).ToList();
|
||||
return (decision.Approved || decision.TemporarilyRejected) && decision.RemoteMovie.Movie != null;
|
||||
}
|
||||
|
||||
private bool IsMovieProcessed(List<DownloadDecision> decisions, DownloadDecision report)
|
||||
|
|
Loading…
Reference in a new issue