From 6f17057f312cc9dfd26a762d464a73a620919bb6 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 4 Feb 2023 20:43:25 -0600 Subject: [PATCH] Fixed: Queue conflicts with the same download in multiple clients Closes #1220 --- src/NzbDrone.Core/Queue/QueueService.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/NzbDrone.Core/Queue/QueueService.cs b/src/NzbDrone.Core/Queue/QueueService.cs index 2ee9b20ad..c37a9a114 100644 --- a/src/NzbDrone.Core/Queue/QueueService.cs +++ b/src/NzbDrone.Core/Queue/QueueService.cs @@ -92,14 +92,7 @@ namespace NzbDrone.Core.Queue DownloadForced = downloadForced }; - if (book != null) - { - queue.Id = HashConverter.GetHashInt31(string.Format("trackedDownload-{0}-book{1}", trackedDownload.DownloadItem.DownloadId, book.Id)); - } - else - { - queue.Id = HashConverter.GetHashInt31(string.Format("trackedDownload-{0}", trackedDownload.DownloadItem.DownloadId)); - } + queue.Id = HashConverter.GetHashInt31($"trackedDownload-{trackedDownload.DownloadClient}-{trackedDownload.DownloadItem.DownloadId}-book{book?.Id ?? 0}"); if (queue.Timeleft.HasValue) {