From af872e4bc59081f9f093d6757d971d7480baa01b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 3 Oct 2021 00:44:13 -0700 Subject: [PATCH] Fixed: Qbit torrents treated as failed after error (cherry picked from commit 7e175bf95ed0a7b624b04a397b953f27043211ae) --- .../QBittorrentTests/QBittorrentFixture.cs | 2 +- src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs index 160a9b4c7..b9b8008b2 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs @@ -172,7 +172,7 @@ public void error_item_should_have_required_properties() GivenTorrents(new List { torrent }); var item = Subject.GetItems().Single(); - VerifyFailed(item); + VerifyWarning(item); } [Test] diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index 83985f9ea..a0339f86c 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -241,8 +241,8 @@ public override IEnumerable GetItems() switch (torrent.State) { - case "error": // some error occurred, applies to paused torrents - item.Status = DownloadItemStatus.Failed; + case "error": // some error occurred, applies to paused torrents, warning so failed download handling isn't triggered + item.Status = DownloadItemStatus.Warning; item.Message = "qBittorrent is reporting an error"; break;