mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
Fixed: An error reported by the torrent client, such as tracker error, is no longer considered a failed download but shown as a warning in Activity.
This commit is contained in:
parent
b3136b359a
commit
909f601929
@ -123,7 +123,8 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||
|
||||
if (torrent.State == DelugeTorrentStatus.Error)
|
||||
{
|
||||
item.Status = DownloadItemStatus.Failed;
|
||||
item.Status = DownloadItemStatus.Warning;
|
||||
item.Message = "Deluge is reporting an error";
|
||||
}
|
||||
else if (torrent.IsFinished && torrent.State != DelugeTorrentStatus.Checking)
|
||||
{
|
||||
|
@ -109,7 +109,6 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||
|
||||
item.DownloadClient = Definition.Name;
|
||||
item.DownloadTime = TimeSpan.FromSeconds(torrent.SecondsDownloading);
|
||||
item.Message = torrent.ErrorString;
|
||||
|
||||
item.OutputPath = outputPath + torrent.Name;
|
||||
item.RemainingSize = torrent.LeftUntilDone;
|
||||
@ -118,7 +117,8 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||
|
||||
if (!torrent.ErrorString.IsNullOrWhiteSpace())
|
||||
{
|
||||
item.Status = DownloadItemStatus.Failed;
|
||||
item.Status = DownloadItemStatus.Warning;
|
||||
item.Message = torrent.ErrorString;
|
||||
}
|
||||
else if (torrent.Status == TransmissionTorrentStatus.Seeding || torrent.Status == TransmissionTorrentStatus.SeedingWait)
|
||||
{
|
||||
|
@ -115,7 +115,8 @@ public override IEnumerable<DownloadClientItem> GetItems()
|
||||
|
||||
if (torrent.Status.HasFlag(UTorrentTorrentStatus.Error))
|
||||
{
|
||||
item.Status = DownloadItemStatus.Failed;
|
||||
item.Status = DownloadItemStatus.Warning;
|
||||
item.Message = "uTorrent is reporting an error";
|
||||
}
|
||||
else if (torrent.Status.HasFlag(UTorrentTorrentStatus.Loaded) &&
|
||||
torrent.Status.HasFlag(UTorrentTorrentStatus.Checked) && torrent.Remaining == 0 && torrent.Progress == 1.0)
|
||||
|
Loading…
Reference in New Issue
Block a user