Fixed: Only blocklist pending releases when option is checked

(cherry picked from commit d11c691a7389d8984ddcbbd299d3192690719a1a)

Fixes #6730
Closes #6732
pull/6735/head
bakerboy448 3 years ago committed by Robin Dadswell
parent 2737937d37
commit 498d9086b5

@ -203,8 +203,12 @@ namespace Radarr.Api.V3.Queue
var pendingRelease = _pendingReleaseService.FindPendingQueueItem(id); var pendingRelease = _pendingReleaseService.FindPendingQueueItem(id);
if (pendingRelease != null) if (pendingRelease != null)
{
if (blocklist)
{ {
_blocklistService.Block(pendingRelease.RemoteMovie, "Pending release manually blocklisted"); _blocklistService.Block(pendingRelease.RemoteMovie, "Pending release manually blocklisted");
}
_pendingReleaseService.RemovePendingQueueItems(pendingRelease.Id); _pendingReleaseService.RemovePendingQueueItems(pendingRelease.Id);
return null; return null;

Loading…
Cancel
Save