From f2b2eb69a3e8b271535bd92dc2f5cbfd45664daf Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 28 Nov 2022 19:04:14 -0800 Subject: [PATCH] Fixed: Handle Flood reporting errors for completed and stopped downloads Closes #5224 --- .../Download/Clients/Flood/Flood.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs b/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs index c19ec494c..c6bbeb359 100644 --- a/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs +++ b/src/NzbDrone.Core/Download/Clients/Flood/Flood.cs @@ -132,22 +132,22 @@ namespace NzbDrone.Core.Download.Clients.Flood item.RemainingTime = TimeSpan.FromSeconds(properties.Eta); } - if (properties.Status.Contains("error")) - { - item.Status = DownloadItemStatus.Warning; - } - else if (properties.Status.Contains("seeding") || properties.Status.Contains("complete")) + if (properties.Status.Contains("seeding") || properties.Status.Contains("complete")) { item.Status = DownloadItemStatus.Completed; } - else if (properties.Status.Contains("downloading")) - { - item.Status = DownloadItemStatus.Downloading; - } else if (properties.Status.Contains("stopped")) { item.Status = DownloadItemStatus.Paused; } + else if (properties.Status.Contains("error")) + { + item.Status = DownloadItemStatus.Warning; + } + else if (properties.Status.Contains("downloading")) + { + item.Status = DownloadItemStatus.Downloading; + } if (item.Status == DownloadItemStatus.Completed) {