Closed dskrad closed 5 years ago
This can be closed.
For those interested, Torrential implements Transmission libraries, so according to Transmission help.
Modify the following 2 lines in settings.json
(located in ~/.config/torrential/
in elementary):
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/path/to/your/script",
The following environment variables are available to your script:
TR_TORRENT_DIR TR_TORRENT_NAME TR_TORRENT_ID TR_TORRENT_HASH TR_TIME_LOCALTIME TR_APP_VERSION
Example given on Transmission website uses a bash script, I wrote a python script using mailgun.
Love the app in elementary Juno.
Feature suggestion: choose actions to run when torrent is finished downloading. Options may include exiting, running a script (while sending parameters such as torrent name, file size, etc), or pausing torrent.
Interestingly, I see a boolean setting for running scripts in the settings.json file. Maybe this will be easy to implement?