Fixed: Handle Flood reporting errors for completed and stopped downloads

Closes #5224
pull/5258/head
Mark McDowall 2 years ago
parent 4c7df31070
commit f2b2eb69a3

@ -132,21 +132,21 @@ namespace NzbDrone.Core.Download.Clients.Flood
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)

Loading…
Cancel
Save