From 6b84da614bd6d919e04c58babde6911916f99e5b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 29 Aug 2021 19:23:31 -0700 Subject: [PATCH] Fixed: Queue conflicts with the same download in multiple clients --- 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 5b3342e2a..49d3be04b 100644 --- a/src/NzbDrone.Core/Queue/QueueService.cs +++ b/src/NzbDrone.Core/Queue/QueueService.cs @@ -82,14 +82,7 @@ namespace NzbDrone.Core.Queue OutputPath = trackedDownload.DownloadItem.OutputPath.ToString() }; - if (episode != null) - { - queue.Id = HashConverter.GetHashInt31(string.Format("trackedDownload-{0}-ep{1}", trackedDownload.DownloadItem.DownloadId, episode.Id)); - } - else - { - queue.Id = HashConverter.GetHashInt31(string.Format("trackedDownload-{0}", trackedDownload.DownloadItem.DownloadId)); - } + queue.Id = HashConverter.GetHashInt31($"trackedDownload-{trackedDownload.DownloadClient}-{trackedDownload.DownloadItem.DownloadId}-ep{episode?.Id ?? 0}"); if (queue.Timeleft.HasValue) {