rakshasa / rtorrent

rTorrent BitTorrent client
https://github.com/rakshasa/rtorrent/wiki
GNU General Public License v2.0
4.07k stars 408 forks source link

No script execution on event.download.finished #1063

Closed rayfun closed 3 years ago

rayfun commented 3 years ago

Hi,

So, going through several forums and sites I've tried a bunch of different syntactical versions of the below line to run a script when a download is finished. I've had no success so far. The script will log to a file, so I see if it has run. I've tried it with curly brackets, without, single quotes around the path etc. Please advise how the correct way to set this up is.

method.set_key=event.download.finished,filebot,"execute=/home/axel/bin/rtorrent-postprocess.sh,$d.get_base_path=,$d.get_name=,$d.get_custom1="

axel@lyra:~/bin$ ll rtorrent-postprocess.sh -rwxr-xr-x 1 axel axel 991 Jan 2 13:53 rtorrent-postprocess.sh*

axel@lyra:~/bin$ apt-cache policy rtorrent 
rtorrent:
  Installed: 0.9.8-1build1
  Candidate: 0.9.8-1build1
  Version table:
 *** 0.9.8-1build1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://mirror.hetzner.de/ubuntu/packages focal/universe amd64 Packages
        100 /var/lib/dpkg/status
rayfun commented 3 years ago

There's also nothing to be seen in the debug log. Torrent is finished but no file execution is happening :-(

torrent_debug.log

rayfun commented 3 years ago

d.get_base_path, get_name, get_custom1 needed to be adjusted according to https://github.com/rakshasa/rtorrent/blob/master/doc/scripts/update_commands_0.9.sed

fixed.