From 8d8a16225ff7772ccb57784f272ca31e28bb8455 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Tue, 13 Jun 2023 22:50:59 -0500 Subject: [PATCH] Fixed: Handle checkingResumeData state form qBittorrent --- .../DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs | 1 + src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs index f63d04de6..4d4ef2399 100644 --- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs +++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs @@ -225,6 +225,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.QBittorrentTests [TestCase("checkingDL")] [TestCase("checkingUP")] [TestCase("metaDL")] + [TestCase("checkingResumeData")] public void queued_item_should_have_required_properties(string state) { var torrent = new QBittorrentTorrent diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index c291bb06f..6934658e2 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -251,6 +251,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent case "queuedDL": // queuing is enabled and torrent is queued for download case "checkingDL": // same as checkingUP, but torrent has NOT finished downloading case "checkingUP": // torrent has finished downloading and is being checked. Set when `recheck torrent on completion` is enabled. In the event the check fails we shouldn't treat it as completed. + case "checkingResumeData": // torrent is checking resume data on load item.Status = DownloadItemStatus.Queued; break;