Browse Source

Seems I was wrong in a2a8f1960d. Actually the problem was in the arguments. Please rTorrent, document! Fixes #251 and fixes #227 again again.

pull/280/head
Eric Kok 9 years ago
parent
commit
48c6b4d072
  1. 6
      app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java

6
app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java

@ -179,9 +179,9 @@ public class RtorrentAdapter implements IDaemonAdapter {
} }
byte[] bytes = baos.toByteArray(); byte[] bytes = baos.toByteArray();
int size = Math.max(((int) file.length() * 2) + XMLRPC_EXTRA_PADDING, XMLRPC_MINIMUM_SIZE); int size = Math.max(((int) file.length() * 2) + XMLRPC_EXTRA_PADDING, XMLRPC_MINIMUM_SIZE);
if (version >= 907) { if (version >= 904) {
makeRtorrentCall(log, "network.xmlrpc.size_limit.set", new Object[]{size + XMLRPC_EXTRA_PADDING}); makeRtorrentCall(log, "network.xmlrpc.size_limit.set", new Object[]{"", size + XMLRPC_EXTRA_PADDING});
makeRtorrentCall(log, "load.raw_start", new Object[]{bytes}); makeRtorrentCall(log, "load.raw_start", new Object[]{"", bytes});
} else { } else {
makeRtorrentCall(log, "set_xmlrpc_size_limit", new Object[]{size + XMLRPC_EXTRA_PADDING}); makeRtorrentCall(log, "set_xmlrpc_size_limit", new Object[]{size + XMLRPC_EXTRA_PADDING});
makeRtorrentCall(log, "load_raw_start", new Object[]{bytes}); makeRtorrentCall(log, "load_raw_start", new Object[]{bytes});

Loading…
Cancel
Save