mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
Fixed transmission returning -1 as Eta.
This commit is contained in:
parent
5fda64de66
commit
aa78807ee2
@ -115,9 +115,13 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
||||
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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user