Browse Source

Fix RTorrent magnet support

RTorrent doesn't support application/x-www-form-urlencoded magnet links, like now send from Chrome.
pull/177/head
tkSimon 10 years ago
parent
commit
08d94bc58c
  1. 1
      app/src/main/java/org/transdroid/daemon/Rtorrent/RtorrentAdapter.java

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

@ -181,6 +181,7 @@ public class RtorrentAdapter implements IDaemonAdapter {
// Request to add a magnet link by URL // Request to add a magnet link by URL
String magnet = ((AddByMagnetUrlTask) task).getUrl(); String magnet = ((AddByMagnetUrlTask) task).getUrl();
magnet = URLDecoder.decode(magnet, "UTF-8");
makeRtorrentCall("load_start", new String[] { magnet }); makeRtorrentCall("load_start", new String[] { magnet });
return new DaemonTaskSuccessResult(task); return new DaemonTaskSuccessResult(task);

Loading…
Cancel
Save