"On completion" script

Feature requests for the GTK+ version of Transmission
Post Reply
Seekme
Posts: 1
Joined: Tue Aug 26, 2014 1:40 pm

"On completion" script

Post by Seekme »

Hello,
I'm using both Plex and Transmission and currently trying to trigger a script when Transmission is done downloading a torrent.
I changed these settings while transmission was stopped :

Code: Select all

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/var/lib/scripts/triggerplex.sh"

Code: Select all

chmod 777 on triggerplex.sh
chown debian-transmission:debian-transmission triggerplex.sh
triggerplex.sh is working manually but nothing is happening when a torrent is done downloading.

Any idea ?
rb07
Posts: 1400
Joined: Sun Aug 24, 2008 3:14 am

Re: "On completion" script

Post by rb07 »

Your script is using programs that are not in its PATH, it doesn't find them.

You should either define PATH at the top of the script, or use the full path of the program(s).

BTW Plex doesn't need anything to work, as long as you have your (whole) configuration right (i.e. Transmission moves the finished download into Plex's library, and Plex has autoupdate set on that library -- but Plex has/had a bug where setting "run a partial scan when changes are detected" didn't work, and prevented the automatic update, the solution was to not set the partial scan, the automatic scan has always worked fine but it does need the intended optimization of the partial scan).
Post Reply