-
-
Save lepinkainen/378791 to your computer and use it in GitHub Desktop.
rtorrent finished events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://libtorrent.rakshasa.no/wiki/RTorrentRatioHandling | |
# Ratio 2.0, close & erase when done - erasing deletes torrents from rtorrent | |
ratio.enable = | |
ratio.min.set = 200 | |
ratio.max.set = 0 | |
ratio.upload.set = 0 | |
system.method.set = group.seeding.ratio.command, d.close=, d.erase= | |
# On completion, move the torrent to the directory from custom1. | |
system.method.set_key = event.download.finished, move_complete, "execute=mv,-u, $d.get_base_path=, $d.get_custom1= ; d.set_directory=$d.get_custom1=" | |
# Link when finished. | |
system.method.set_key = event.download.finished, link_finished, "execute = mkdir, -p, /storage/torrents/_to_watch; execute = cp, -al, --, $d.get_base_path=, /storage/torrents/_to_watch/" | |
# notify with prowl on complete | |
system.method.set_key = event.download.finished, prowl_notify, "execute = /home/shrike/bin/prowl.sh, \"rtorrent - completed\", \"$d.get_name=\"" | |
# Delete when erased. | |
system.method.set_key = event.download.erased, delete_erased, "execute = rm, -fr, --, $d.get_base_path=" |
doesn't work for me even with new 0.9.4 commands
method.set_key = event.download.erased,delete_erased,"execute=rm,-rf,$d.base_path"
it says that '=' is missing...where?
@flaggz When you call a command the format is $<command_name>=
. In your case you are missing a =
on the very end, after $d.base_path
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this.
The man page is outdated, the wiki 404s, and google randomly returned this, so you kind of saved me trying to find the new ratio syntax! ^_^