mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-15 21:06:20 -04:00
New: Show processing time for pending items on Calendar and Queue
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Download;
|
||||
@@ -52,11 +53,16 @@ namespace NzbDrone.Core.Queue
|
||||
RemoteEpisode = queueItem.DownloadItem.RemoteEpisode
|
||||
};
|
||||
|
||||
if (queueItem.HasError)
|
||||
if (queueItem.HasError)
|
||||
{
|
||||
queue.ErrorMessage = queueItem.StatusMessage;
|
||||
}
|
||||
|
||||
if (queue.Timeleft.HasValue)
|
||||
{
|
||||
queue.EstimatedCompletionTime = DateTime.UtcNow.Add(queue.Timeleft.Value);
|
||||
}
|
||||
|
||||
queued.Add(queue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user