diff --git a/src/NzbDrone.Api/Queue/QueueResource.cs b/src/NzbDrone.Api/Queue/QueueResource.cs index ce4bd73bb..44f54fbd4 100644 --- a/src/NzbDrone.Api/Queue/QueueResource.cs +++ b/src/NzbDrone.Api/Queue/QueueResource.cs @@ -21,5 +21,6 @@ namespace NzbDrone.Api.Queue public String Status { get; set; } public String TrackedDownloadStatus { get; set; } public List StatusMessages { get; set; } + public String TrackingId { get; set; } } } diff --git a/src/NzbDrone.Core/Queue/Queue.cs b/src/NzbDrone.Core/Queue/Queue.cs index 837a05af0..803812735 100644 --- a/src/NzbDrone.Core/Queue/Queue.cs +++ b/src/NzbDrone.Core/Queue/Queue.cs @@ -22,5 +22,6 @@ namespace NzbDrone.Core.Queue public String TrackedDownloadStatus { get; set; } public List StatusMessages { get; set; } public RemoteEpisode RemoteEpisode { get; set; } + public String TrackingId { get; set; } } } diff --git a/src/NzbDrone.Core/Queue/QueueService.cs b/src/NzbDrone.Core/Queue/QueueService.cs index dda598798..60e49fe62 100644 --- a/src/NzbDrone.Core/Queue/QueueService.cs +++ b/src/NzbDrone.Core/Queue/QueueService.cs @@ -38,7 +38,7 @@ namespace NzbDrone.Core.Queue { var queue = new Queue { - Id = episode.Id ^ (trackedDownload.DownloadItem.DownloadClientId.GetHashCode().GetHashCode() << 16), + Id = episode.Id ^ (trackedDownload.DownloadItem.DownloadClientId.GetHashCode() << 16), Series = trackedDownload.RemoteEpisode.Series, Episode = episode, Quality = trackedDownload.RemoteEpisode.ParsedEpisodeInfo.Quality, @@ -49,7 +49,8 @@ namespace NzbDrone.Core.Queue Status = trackedDownload.DownloadItem.Status.ToString(), RemoteEpisode = trackedDownload.RemoteEpisode, TrackedDownloadStatus = trackedDownload.Status.ToString(), - StatusMessages = trackedDownload.StatusMessages + StatusMessages = trackedDownload.StatusMessages, + TrackingId = trackedDownload.TrackingId }; if (queue.Timeleft.HasValue)