Browse Source

qBittorrent: Fix setting global upload and download limits

pull/631/head
Brian Witt 2 years ago
parent
commit
452927ada4
  1. 4
      app/src/main/java/org/transdroid/daemon/adapters/qBittorrent/QBittorrentAdapter.java

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

@ -469,8 +469,8 @@ public class QBittorrentAdapter implements IDaemonAdapter { @@ -469,8 +469,8 @@ public class QBittorrentAdapter implements IDaemonAdapter {
String ul = (ratesTask.getUploadRate() == null ? "NaN" : Long.toString(ratesTask.getUploadRate() * 1024));
if (version >= 40100) {
pathDL = "/api/v2/torrents/setDownloadLimit";
pathUL = "/api/v2/torrents/setUploadLimit";
pathDL = "/api/v2/transfer/setDownloadLimit";
pathUL = "/api/v2/transfer/setUploadLimit";
} else {
pathDL = "/command/setGlobalDlLimit";
pathUL = "/command/setGlobalUpLimit";

Loading…
Cancel
Save