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.

pull/2/head
Taloth Saldono 10 years ago
parent b3136b359a
commit 909f601929

@ -123,7 +123,8 @@ namespace NzbDrone.Core.Download.Clients.Deluge
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 @@ namespace NzbDrone.Core.Download.Clients.Transmission
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 @@ namespace NzbDrone.Core.Download.Clients.Transmission
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 @@ namespace NzbDrone.Core.Download.Clients.UTorrent
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…
Cancel
Save