Browse Source

It seems that rTorrent started using load.start since 0.9.4 but load.start_raw not until 0.9.7. What a mess!

pull/280/head
Eric Kok 9 years ago
parent
commit
796253fec9
  1. 2
      app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java

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

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

Loading…
Cancel
Save