1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 17:57:43 +00:00

Added trackingId to queue

This commit is contained in:
Mark McDowall 2014-10-22 16:57:37 -07:00
parent 7816499b52
commit b579a1fcfe
3 changed files with 5 additions and 2 deletions

View file

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

View file

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

View file

@ -38,7 +38,7 @@ namespace NzbDrone.Core.Queue
{ {
var queue = new 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, Series = trackedDownload.RemoteEpisode.Series,
Episode = episode, Episode = episode,
Quality = trackedDownload.RemoteEpisode.ParsedEpisodeInfo.Quality, Quality = trackedDownload.RemoteEpisode.ParsedEpisodeInfo.Quality,
@ -49,7 +49,8 @@ namespace NzbDrone.Core.Queue
Status = trackedDownload.DownloadItem.Status.ToString(), Status = trackedDownload.DownloadItem.Status.ToString(),
RemoteEpisode = trackedDownload.RemoteEpisode, RemoteEpisode = trackedDownload.RemoteEpisode,
TrackedDownloadStatus = trackedDownload.Status.ToString(), TrackedDownloadStatus = trackedDownload.Status.ToString(),
StatusMessages = trackedDownload.StatusMessages StatusMessages = trackedDownload.StatusMessages,
TrackingId = trackedDownload.TrackingId
}; };
if (queue.Timeleft.HasValue) if (queue.Timeleft.HasValue)