From d11c691a7389d8984ddcbbd299d3192690719a1a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 17 Nov 2021 07:46:01 -0800 Subject: [PATCH] Fixed: Only blocklist pending releases when option is checked --- src/Sonarr.Api.V3/Queue/QueueActionModule.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Sonarr.Api.V3/Queue/QueueActionModule.cs b/src/Sonarr.Api.V3/Queue/QueueActionModule.cs index a7fbb0f90..5048c6e8f 100644 --- a/src/Sonarr.Api.V3/Queue/QueueActionModule.cs +++ b/src/Sonarr.Api.V3/Queue/QueueActionModule.cs @@ -130,7 +130,11 @@ namespace Sonarr.Api.V3.Queue if (pendingRelease != null) { - _blocklistService.Block(pendingRelease.RemoteEpisode, "Pending release manually blocklisted"); + if (blocklist) + { + _blocklistService.Block(pendingRelease.RemoteEpisode, "Pending release manually blocklisted"); + } + _pendingReleaseService.RemovePendingQueueItems(pendingRelease.Id); return null;