diff --git a/src/Lidarr.Api.V1/Blocklist/BlocklistController.cs b/src/Lidarr.Api.V1/Blocklist/BlocklistController.cs index 7a9e2c7ca..aa482dc6d 100644 --- a/src/Lidarr.Api.V1/Blocklist/BlocklistController.cs +++ b/src/Lidarr.Api.V1/Blocklist/BlocklistController.cs @@ -18,7 +18,7 @@ public BlocklistController(IBlocklistService blocklistService) } [HttpGet] - public PagingResource GetBlacklist() + public PagingResource GetBlocklist() { var pagingResource = Request.ReadPagingResourceFromRequest(); var pagingSpec = pagingResource.MapToPagingSpec("date", SortDirection.Descending); diff --git a/src/Lidarr.Api.V1/Queue/QueueController.cs b/src/Lidarr.Api.V1/Queue/QueueController.cs index 8c444e264..a9c2bea77 100644 --- a/src/Lidarr.Api.V1/Queue/QueueController.cs +++ b/src/Lidarr.Api.V1/Queue/QueueController.cs @@ -59,9 +59,9 @@ public override QueueResource GetResourceById(int id) } [RestDeleteById] - public void RemoveAction(int id, bool removeFromClient = true, bool blacklist = false, bool skipReDownload = false) + public void RemoveAction(int id, bool removeFromClient = true, bool blocklist = false, bool skipReDownload = false) { - var trackedDownload = Remove(id, removeFromClient, blacklist, skipReDownload); + var trackedDownload = Remove(id, removeFromClient, blocklist, skipReDownload); if (trackedDownload != null) { @@ -70,13 +70,13 @@ public void RemoveAction(int id, bool removeFromClient = true, bool blacklist = } [HttpDelete("bulk")] - public object RemoveMany([FromBody] QueueBulkResource resource, [FromQuery] bool removeFromClient = true, [FromQuery] bool blacklist = false, [FromQuery] bool skipReDownload = false) + public object RemoveMany([FromBody] QueueBulkResource resource, [FromQuery] bool removeFromClient = true, [FromQuery] bool blocklist = false, [FromQuery] bool skipReDownload = false) { var trackedDownloadIds = new List(); foreach (var id in resource.Ids) { - var trackedDownload = Remove(id, removeFromClient, blacklist, skipReDownload); + var trackedDownload = Remove(id, removeFromClient, blocklist, skipReDownload); if (trackedDownload != null) { @@ -191,7 +191,7 @@ public PagingResource GetQueue(bool includeUnknownArtistItems = f } } - private TrackedDownload Remove(int id, bool removeFromClient, bool blacklist, bool skipReDownload) + private TrackedDownload Remove(int id, bool removeFromClient, bool blocklist, bool skipReDownload) { var pendingRelease = _pendingReleaseService.FindPendingQueueItem(id); @@ -221,12 +221,12 @@ private TrackedDownload Remove(int id, bool removeFromClient, bool blacklist, bo downloadClient.RemoveItem(trackedDownload.DownloadItem.DownloadId, true); } - if (blacklist) + if (blocklist) { _failedDownloadService.MarkAsFailed(trackedDownload.DownloadItem.DownloadId, skipReDownload); } - if (!removeFromClient && !blacklist) + if (!removeFromClient && !blocklist) { if (!_ignoredDownloadService.IgnoreDownload(trackedDownload)) {