Skip to content

Instantly share code, notes, and snippets.

@lepinkainen
Forked from ion1/rtorrent.rc
Created April 25, 2010 22:37
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lepinkainen/378791 to your computer and use it in GitHub Desktop.
Save lepinkainen/378791 to your computer and use it in GitHub Desktop.
rtorrent finished events
# 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="
@WhyNotHugo
Copy link

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! ^_^

@flaggz
Copy link

flaggz commented Jun 14, 2014

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?

@larvanitis
Copy link

@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