Added trackingId to queue

pull/4/head
Mark McDowall 10 years ago
parent 7816499b52
commit b579a1fcfe

@ -21,5 +21,6 @@ namespace NzbDrone.Api.Queue
public String Status { get; set; }
public String TrackedDownloadStatus { get; set; }
public List<TrackedDownloadStatusMessage> StatusMessages { get; set; }
public String TrackingId { get; set; }
}
}

@ -22,5 +22,6 @@ namespace NzbDrone.Core.Queue
public String TrackedDownloadStatus { get; set; }
public List<TrackedDownloadStatusMessage> StatusMessages { get; set; }
public RemoteEpisode RemoteEpisode { get; set; }
public String TrackingId { get; set; }
}
}

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

Loading…
Cancel
Save