Browse Source

Fixed removing of torrents in qBittorrent (issue 344).

pull/11/head
Eric Kok 13 years ago
parent
commit
f10df80b09
  1. 2
      lib/.classpath
  2. 2
      lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java

2
lib/.classpath

@ -2,6 +2,6 @@ @@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="lib" path="/var/data/Dev/android-sdk/platforms/android-13/android.jar"/>
<classpathentry kind="lib" path="../../../android-sdk/platforms/android-13/android.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

2
lib/src/org/transdroid/daemon/Qbittorrent/QbittorrentAdapter.java

@ -125,7 +125,7 @@ public class QbittorrentAdapter implements IDaemonAdapter { @@ -125,7 +125,7 @@ public class QbittorrentAdapter implements IDaemonAdapter {
// Remove a torrent
RemoveTask removeTask = (RemoveTask) task;
makeRequest((removeTask.includingData()? "/command/deletePerm": "/command/delete"), new BasicNameValuePair("hash", removeTask.getTargetTorrent().getUniqueID()));
makeRequest((removeTask.includingData()? "/command/deletePerm": "/command/delete"), new BasicNameValuePair("hashes", removeTask.getTargetTorrent().getUniqueID()));
return new DaemonTaskSuccessResult(task);
case Pause:

Loading…
Cancel
Save