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:
parent
7816499b52
commit
b579a1fcfe
3 changed files with 5 additions and 2 deletions
|
@ -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…
Reference in a new issue