I'm trying to configure my rtorrent such that it executes a script on event.download.finished. However, I can't get it to pass along the list of trackers to my script. My real intention is to execute the script only if the torrent was associated with a given whitelist of trackers.
However, this causes the event to not be fired at all. It works if I remove the $d.tracker_alias parameter. But then how do I run this script only on certain torrents? For example, the intended test.sh looks like:
case $3 in
tracker.example.com|tracker.example2.com)
run_tasks
;;
*)
exit
;;
esac
I'm trying to configure my rtorrent such that it executes a script on
event.download.finished
. However, I can't get it to pass along the list of trackers to my script. My real intention is to execute the script only if the torrent was associated with a given whitelist of trackers.My current approach is:
However, this causes the event to not be fired at all. It works if I remove the
$d.tracker_alias
parameter. But then how do I run this script only on certain torrents? For example, the intendedtest.sh
looks like: