qBittorrent -- Run external program on torrent completion
Posted: 31 Aug 2021, 22:34
Hi, I'm trying to get Filebot to run on torrent completion with qBittorrent 4.2.5 on Debian 11. I have a terminal command that works and does exactly what I want when I run it in the terminal:
I'm basically just copying mkv files from a Downloads folder to a TV folder with appropriate naming conventions for Kodi, and then sending myself a notification. Here's the log output from a successful terminal run:
However, nothing happens after torrent completion when I enter the terminal command into the "on torrent completion" box in the qBittorrent settings. Nothing is written to the log file, so I don't think Filebot is being called. Do I need to add or change something to get qBittorrent to run a terminal command?
Code: Select all
filebot -rename ./nas/Downloads/*.mkv -non-strict --output ./nas/TV --format "{~kodi}" -no-index -script fn:amc --log-file ./amc.log --def pushbullet=[myApiKey]
Code: Select all
Run script [fn:amc] at [Tue Aug 31 17:48:00 EDT 2021]
Parameter: pushbullet = *****
Argument[0]: /home/user/nas/Downloads/file.mkv
Input: /home/user/nas/Downloads/file.mkv
xattr: [file.mkv] => [Series - 1x01 - Episode]
Group: {Series=series name} => [file.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Series Name]
Fetching episode data for [Series Name]
[MOVE] from [/home/user/nas/Downloads/file.mkv] to
[/home/user/nas/TV/Series Name/Season 1/Series Name - 1x01 - Episode.mkv]
Processed 1 file
Sending PushBullet report
Done ヾ(@⌒ー⌒@)ノ