Fixed: Queue conflicts with the same download in multiple clients

This commit is contained in:
Mark McDowall 2021-08-29 19:23:31 -07:00
parent 31833253dd
commit 6b84da614b
1 changed files with 1 additions and 8 deletions

View File

@ -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)
{