Browse Source

Merge pull request #631 from bwitt/qbittorrent-set-global-limits

qBittorrent 4.x+: Fix setting global upload and download limits
pull/642/head
Eric Kok 2 years ago committed by GitHub
parent
commit
cc7a73ce56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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