I prefer Deluge, so after confirming that i had java and filebot 4.6 installed on my box, i used this tutorial for Deluge and AMC:
viewtopic.php?f=4&t=215#p3382
I even tried the updated version of script that rednoah did 12 hours ago from me writing this, but i still hav the same
I created a "Torrent Complete" action in deluge pointing it to the script. But no matter what i try, AMC wont run. It wont even create a log for me to share here.
I was able to get other basic scripts to executed by changing the permissions with chmod u+r, and chmod+rx, I've tried both and i still have the same issue, so i dont think it's a permissions issue.
Here's what's weird - i have a folder "media" on the root directory of my box. I went a head and created 2 folders inside, "TV Shows" and "Movies". When i complete a torrent (with the deluge postprocess script set to run. it CLEARS out that media folder. the "TV Shows" and "Movies" folders are completely gone. It doesnt delete any other content thats in the media folder, just the TV Shows and Movies folders. If i re-add the folders manually and complete another torrent, they're gone again. How could it delete these folders without the "clean" command?
Here are 2 script versions I've tried, first is default:
Code: Select all
#!/bin/sh
# Input Parameters
export OPT_PATH="$3"
export OPT_NAME="$2"
export OPT_LABEL="N/A"
# Configuration
export CONF_OUTPUT="$HOME/media" # if this script is called by the deluge user, then $HOME will NOT refer to YOUR user home, but paths such as /var/lib/deluge instead
# Sanity Check
if [ ! -w "$HOME" ]; then
echo "$HOME must be writable" 1>&2 # filebot requires a valid $HOME folder
exit 2
fi
filebot -script fn:amc --output "$CONF_OUTPUT" --action symlink --conflict skip -non-strict --log-file amc.log --def unsorted=y music=y artwork=y excludeList=".excludes" ut_dir="$OPT_PATH" ut_kind="multi" ut_title="$OPT_NAME" ut_label="$OPT_LABEL"
Code: Select all
#!/bin/sh
# Input Parameters
export OPT_PATH="$3"
export OPT_NAME="$2"
export OPT_LABEL="N/A"
# Configuration
export CONF_OUTPUT="/media/sdq1/energyballs/media" # if this script is called by the deluge user, then $HOME will NOT refer to YOUR user home, but paths such as /var/lib/deluge instead
# Sanity Check
if [ ! -w "$HOME" ]; then
echo "$HOME must be writable" 1>&2 # filebot requires a valid $HOME folder
exit 2
fi
filebot -script fn:amc --output "$CONF_OUTPUT" --action symlink --conflict auto -non-strict --log-file amc.log --def unsorted=y music=y artwork=y excludeList=".excludes" ut_dir="$OPT_PATH" ut_kind="multi" ut_title="$OPT_NAME" ut_label="$OPT_LABEL"