Browse Source

Merge pull request #675 from jjlin/qbt5

qBittorrent: map `stoppedDL` and `stoppedUP` states to paused status
master
Eric Kok 1 month ago committed by GitHub
parent
commit
84c9f53a8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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