Fixed: Only blocklist pending releases when option is checked

pull/4764/head
Mark McDowall 3 years ago
parent 44a160fa06
commit d11c691a73

@ -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;

Loading…
Cancel
Save