Browse Source

qBittorrent: map `stoppedDL` and `stoppedUP` states to paused status

In qBittorrent 5.x, these states replace `pausedDL` and `pausedUP`.
pull/675/head
Jeremy Lin 2 months ago
parent
commit
6a778e623e
No known key found for this signature in database
  1. 13
      app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java

13
app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java

@ -890,23 +890,20 @@ public class QBittorrentAdapter implements IDaemonAdapter { @@ -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;
}

Loading…
Cancel
Save