1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-30 19:02:06 +00:00

Fixed transmission returning -1 as Eta.

This commit is contained in:
Taloth Saldono 2015-05-29 20:47:55 +02:00
parent 5fda64de66
commit aa78807ee2

View file

@ -115,9 +115,13 @@ public override IEnumerable<DownloadClientItem> GetItems()
item.DownloadClient = Definition.Name;
item.OutputPath = outputPath + torrent.Name;
item.TotalSize = torrent.TotalSize;
item.RemainingSize = torrent.LeftUntilDone;
item.RemainingTime = TimeSpan.FromSeconds(torrent.Eta);
item.TotalSize = torrent.TotalSize;
if (torrent.Eta != -1)
{
item.RemainingTime = TimeSpan.FromSeconds(torrent.Eta);
}
if (!torrent.ErrorString.IsNullOrWhiteSpace())
{