From 6a778e623e71becb2fa35b8357042d7274fec287 Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Thu, 17 Oct 2024 22:56:05 -0700 Subject: [PATCH] qBittorrent: map `stoppedDL` and `stoppedUP` states to paused status In qBittorrent 5.x, these states replace `pausedDL` and `pausedUP`. --- .../adapters/qBittorrent/QBittorrentAdapter.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java b/app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java index 3fa11e6f..c37bf139 100644 --- a/app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java +++ b/app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java @@ -890,23 +890,20 @@ public class QBittorrentAdapter implements IDaemonAdapter { return TorrentStatus.Error; case "downloading": case "metaDL": + case "stalledDL": return TorrentStatus.Downloading; case "uploading": + case "stalledUP": return TorrentStatus.Seeding; case "pausedDL": - return TorrentStatus.Paused; case "pausedUP": + case "stoppedDL": + case "stoppedUP": return TorrentStatus.Paused; - case "stalledUP": - return TorrentStatus.Seeding; - case "stalledDL": - return TorrentStatus.Downloading; - case "checkingUP": - return TorrentStatus.Checking; case "checkingDL": + case "checkingUP": return TorrentStatus.Checking; case "queuedDL": - return TorrentStatus.Queued; case "queuedUP": return TorrentStatus.Queued; }