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 {
String ul = (ratesTask.getUploadRate() == null ? "NaN" : Long.toString(ratesTask.getUploadRate() * 1024)); String ul = (ratesTask.getUploadRate() == null ? "NaN" : Long.toString(ratesTask.getUploadRate() * 1024));
if (version >= 40100) { if (version >= 40100) {
pathDL = "/api/v2/torrents/setDownloadLimit"; pathDL = "/api/v2/transfer/setDownloadLimit";
pathUL = "/api/v2/torrents/setUploadLimit"; pathUL = "/api/v2/transfer/setUploadLimit";
} else { } else {
pathDL = "/command/setGlobalDlLimit"; pathDL = "/command/setGlobalDlLimit";
pathUL = "/command/setGlobalUpLimit"; pathUL = "/command/setGlobalUpLimit";

Loading…
Cancel
Save