I have a Pi3 B+ that has a fresh install of dietpi. I'm rebuilding my torrent box that uses filebot (auto rename tool) that was previously on a Pi 2 but couldn't be updated to the current dietpi version due to it be so old.
My issue is with deluge console. I have a script that runs after the file is downloaded which pauses the torrent and passes the torrent data to the filebot script to run. For some reason it's not working at all. The only thing I can figure is the change to the user debian-deluged. The script won't pause the torrent due to that issue and it appears it isn't able to pull the torrent data $1, $2 and $3 which would have the path data filebot needs.
Here's the script I'm running:
Code: Select all
#!/bin/bash
TORRENT_ID=$1
TORRENT_NAME=$2
TORRENT_PATH=$3
deluge-console pause $TORRENT_ID
filebot -script fn:amc --output "/mnt/samba" --log-file /root/scripts/amc.log --action move --conflict override -non-strict --def music=y clean=y "movieFormat=Movies/{any{collection}{n+' ('+y+')'}}/{n} {'('+y+')'}{' CD'+pi}" "ut_dir=$TORRENT_PATH/$TORRENT_NAME" "ut_kind=multi" "ut_title=$TORRENT_NAME"
deluge-console del $TORRENT_ID
filebot -script fn:cleaner $TORRENT_PATH --log-file /root/scripts/cleaner.log