1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-21 06:39:06 +00:00

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

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