script-torrent-added-filename Get current torrent name?

Ask for help and report issues with the GTK+ version of Transmission
Post Reply
tonyp
Posts: 2
Joined: Sat Sep 07, 2024 3:24 am

script-torrent-added-filename Get current torrent name?

Post by tonyp »

When using "script-torrent-added-filename" or "script-torrent-done-filename", is there a way to get the name of the torrent that triggered the script?

I can't seem to find a way to get the added or finished torrent variable. I could parse transmissions log file, but I have it turned off and would rather not take that route. It's also messy trying to ask transmission-remote as it's overly verbose, and difficult to sort the data that way.

There doesn't seem to be an easy way to get the torrent that triggered the script's name.
tonyp
Posts: 2
Joined: Sat Sep 07, 2024 3:24 am

Re: script-torrent-added-filename Get current torrent name?

Post by tonyp »

I can answer my own question - environment variables. It's poorly documented, as it's not listed under environment variables - https://github.com/transmission/transmi ... riables.md.

It's hidden in the scripts section.
https://github.com/transmission/transmi ... Scripts.md
Post Reply