mirror of https://github.com/Radarr/Radarr
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 @@ namespace NzbDrone.Core.Download
|
||||||
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 @@ namespace NzbDrone.Core.Download
|
||||||
}
|
}
|
||||||
|
|
||||||
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