From 7c90667965bb7c87de29da3bbb324c1af6aad8a7 Mon Sep 17 00:00:00 2001 From: Swizzy Date: Sun, 30 Dec 2018 14:17:03 +0100 Subject: [PATCH] Added: Support for forcedUP status (#3277) Also added a warning message upon hitting new unknown states so that they can be handled properly at some point --- .../Download/Clients/QBittorrent/QBittorrent.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs index dd8f70ae3e..ec9c77e425 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs @@ -154,6 +154,7 @@ public override IEnumerable GetItems() case "stalledUP": // torrent is being seeded, but no connection were made case "queuedUP": // queuing is enabled and torrent is queued for upload case "checkingUP": // torrent has finished downloading and is being checked + case "forcedUP": // torrent is beeing seeded by force item.Status = DownloadItemStatus.Completed; item.RemainingTime = TimeSpan.Zero; // qBittorrent sends eta=8640000 for completed torrents break; @@ -164,7 +165,12 @@ public override IEnumerable GetItems() break; case "downloading": // torrent is being downloaded and data is being transfered + item.Status = DownloadItemStatus.Downloading; + break; + default: // new status in API? default to downloading + item.Message = "Unknown download state: " + torrent.State; + _logger.Warn(item.Message); item.Status = DownloadItemStatus.Downloading; break; }