1
0
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:
Taloth Saldono 2014-11-22 03:10:24 +01:00
parent b3136b359a
commit 909f601929
3 changed files with 6 additions and 4 deletions

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)