Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete torrent data when deleting from interface #201

Closed
flaggz opened this issue May 21, 2014 · 9 comments
Closed

Delete torrent data when deleting from interface #201

flaggz opened this issue May 21, 2014 · 9 comments

Comments

@flaggz
Copy link

flaggz commented May 21, 2014

Since 0.9.4 I can no longer delete torrent data file when i press ctrl+d from the interface

All the files remains in the completed folder

The lines in the rtorrent.rc are these
First part is working but second part works only for incomplete torrents and not for completed that I want to completely remove

Move completed files

system.method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,/my/custom/path"

Erase data files when a download is removed

system.method.set_key = event.download.erased,delete_erased,"execute=rm,-rf,--,$d.get_base_path="

@rakshasa
Copy link
Owner

The commands no longer include the "get_" part, use grep on rtorrent/src/command_*.cc to verify you have the right names.

@flaggz
Copy link
Author

flaggz commented Jun 9, 2014

seems no luck with new commands

method.set_key = event.download.erased,delete_erased,"execute={rm,-rf,$d.base_path}"

Event 'event.download.erased' failed: Could not find '='.

@rakshasa
Copy link
Owner

rakshasa commented Jun 9, 2014

The reason is in the error message, you forgot to include '='.

@flaggz
Copy link
Author

flaggz commented Jun 9, 2014

where exactly the '=' goes?

in main.cc is
method.set_key = event.download.erased, ~_delete_tied, d.delete_tied=

do I have to put like this?
method.set_key = event.download.erased,delete_erased,execute="rm,-rf,$d.base_path"

but it doesn't work. sorry to bother but I could not figure it out with 0.9.4

@Novik
Copy link

Novik commented Jun 23, 2014

where exactly the '=' goes?

method.set_key = event.download.erased,delete_erased,execute="rm,-rf,$d.base_path="

@rakshasa
Copy link
Owner

Added the command name to the error message.

@flaggz
Copy link
Author

flaggz commented Jun 24, 2014

rtorrent: Error in option file: ~/.rtorrent.rc:108: Missing closing quote.

the line 108 is
method.set_key = event.download.erased,delete_erased,execute="rm,-rf,$d.base_path="

@rakshasa
Copy link
Owner

method.set_key = event.download.resumed,foo,"execute=ln,-s,$d.base_path=,/tmp/foo.bar"

The above his how the quotes are supposed to be.

@flaggz
Copy link
Author

flaggz commented Jun 24, 2014

finally works like this
method.set_key = event.download.erased,delete_erased,"execute=rm,-rf,--,$d.base_path="

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants