From 6db159704add19e7d4bd29bc820a22231ddd4ba0 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Fri, 17 Nov 2017 22:17:43 +0100 Subject: [PATCH] Fixed some qBittorrent statuses. Fixes #275. --- .../transdroid/daemon/Qbittorrent/QbittorrentAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java b/app/src/main/java/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java index b370a956..82d53c9a 100644 --- a/app/src/main/java/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java +++ b/app/src/main/java/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java @@ -650,13 +650,13 @@ public class QbittorrentAdapter implements IDaemonAdapter { // Status is given as a descriptive string if (state.equals("error")) { return TorrentStatus.Error; - } else if (state.equals("downloading")) { + } else if (state.equals("downloading") || state.equals("metaDL")) { return TorrentStatus.Downloading; } else if (state.equals("uploading")) { return TorrentStatus.Seeding; } else if (state.equals("pausedDL")) { return TorrentStatus.Paused; - } else if (state.equals("pausedUL")) { + } else if (state.equals("pausedUP")) { return TorrentStatus.Paused; } else if (state.equals("stalledUP")) { return TorrentStatus.Seeding; @@ -668,7 +668,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { return TorrentStatus.Checking; } else if (state.equals("queuedDL")) { return TorrentStatus.Queued; - } else if (state.equals("queuedUL")) { + } else if (state.equals("queuedUP")) { return TorrentStatus.Queued; } return TorrentStatus.Unknown;