mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
Fixed: Pushed releases not being properly rejected
(cherry picked from commit 07f816ffb18ac34090c2f8ba25147737299b361d) Closes #9204
This commit is contained in:
parent
ce145a3050
commit
3248e7f476
@ -131,6 +131,11 @@ public async Task<ProcessedDecisionResult> ProcessDecision(DownloadDecision deci
|
|||||||
return ProcessedDecisionResult.Skipped;
|
return ProcessedDecisionResult.Skipped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!IsQualifiedReport(decision))
|
||||||
|
{
|
||||||
|
return ProcessedDecisionResult.Rejected;
|
||||||
|
}
|
||||||
|
|
||||||
if (decision.TemporarilyRejected)
|
if (decision.TemporarilyRejected)
|
||||||
{
|
{
|
||||||
_pendingReleaseService.Add(decision, PendingReleaseReason.Delay);
|
_pendingReleaseService.Add(decision, PendingReleaseReason.Delay);
|
||||||
@ -149,9 +154,14 @@ public async Task<ProcessedDecisionResult> ProcessDecision(DownloadDecision deci
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal List<DownloadDecision> GetQualifiedReports(IEnumerable<DownloadDecision> decisions)
|
internal List<DownloadDecision> GetQualifiedReports(IEnumerable<DownloadDecision> decisions)
|
||||||
|
{
|
||||||
|
return decisions.Where(IsQualifiedReport).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
internal bool IsQualifiedReport(DownloadDecision decision)
|
||||||
{
|
{
|
||||||
// Process both approved and temporarily rejected
|
// 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)
|
private bool IsMovieProcessed(List<DownloadDecision> decisions, DownloadDecision report)
|
||||||
|
Loading…
Reference in New Issue
Block a user