Fixed: Handle Flood reporting errors for completed and stopped downloads

(cherry picked from commit f2b2eb69a3e8b271535bd92dc2f5cbfd45664daf)
pull/2010/head
Mark McDowall 2 years ago committed by Qstick
parent aa2855a62b
commit a6a2219bc4

@ -125,21 +125,21 @@ namespace NzbDrone.Core.Download.Clients.Flood
item.RemainingTime = TimeSpan.FromSeconds(properties.Eta); item.RemainingTime = TimeSpan.FromSeconds(properties.Eta);
} }
if (properties.Status.Contains("error")) if (properties.Status.Contains("seeding") || properties.Status.Contains("complete"))
{ {
item.Status = DownloadItemStatus.Warning; item.Status = DownloadItemStatus.Completed;
} }
else if (properties.Status.Contains("seeding") || properties.Status.Contains("complete")) else if (properties.Status.Contains("stopped"))
{ {
item.Status = DownloadItemStatus.Completed; item.Status = DownloadItemStatus.Paused;
} }
else if (properties.Status.Contains("downloading")) else if (properties.Status.Contains("error"))
{ {
item.Status = DownloadItemStatus.Downloading; item.Status = DownloadItemStatus.Warning;
} }
else if (properties.Status.Contains("stopped")) else if (properties.Status.Contains("downloading"))
{ {
item.Status = DownloadItemStatus.Paused; item.Status = DownloadItemStatus.Downloading;
} }
if (item.Status == DownloadItemStatus.Completed) if (item.Status == DownloadItemStatus.Completed)

Loading…
Cancel
Save