Browse Source

Merge pull request #655 from bwitt/rtorrent-remove-torrent-delete-data

rTorrent: also send `d.delete_tied` when removing torrent and data
pull/648/head
Eric Kok 12 months ago committed by GitHub
parent
commit
b78d0c3f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/org/transdroid/daemon/adapters/rTorrent/RTorrentAdapter.java

2
app/src/main/java/org/transdroid/daemon/adapters/rTorrent/RTorrentAdapter.java

@ -219,6 +219,8 @@ public class RTorrentAdapter implements IDaemonAdapter {
if (removeTask.includingData()) { if (removeTask.includingData()) {
makeRtorrentCall(log, "d.custom5.set", makeRtorrentCall(log, "d.custom5.set",
new String[]{task.getTargetTorrent().getUniqueID(), "1"}); new String[]{task.getTargetTorrent().getUniqueID(), "1"});
makeRtorrentCall(log, "d.delete_tied",
new String[]{task.getTargetTorrent().getUniqueID()});
} }
makeRtorrentCall(log, "d.erase", new String[]{task.getTargetTorrent().getUniqueID()}); makeRtorrentCall(log, "d.erase", new String[]{task.getTargetTorrent().getUniqueID()});
return new DaemonTaskSuccessResult(task); return new DaemonTaskSuccessResult(task);

Loading…
Cancel
Save