Oh flip. Sorry. I just realised that the file location variable is $2 in the script. SAB passes out "$2" as NZB name.
Do this. (and it will work, I promise.)
Call it externally with another script, like so:
Code: Select all
#!/bin/bash
cd "$1"
if [ "$5" = "x264-tv" ]; then
bash "/mnt/head/.sabnzbd/scripts/scenesort.sh" -m; fi
if [ "$5" = "xvid-tv" ]; then
bash "/mnt/head/.sabnzbd/scripts/scenesort.sh" -bj; fi
Paste the above into an empty file,
chmod -c +x filename.sh,
set the above as SAB post-processing.
Change paths to scenesort.sh (fileame doesn't matter) accordingly. Leave the -m option on the end.
Switch "x264-tv" to the name of your x264 category.
(you'll also need to create custom categories if still using default - one for x264 another for xvid.)
edit: I changed the way ReScene version check works, so download latest script version before running.
You'll have to set WGET_PREFIX as "" if torsocks is not installed, that'll explain why it didn't auto update.
That was my fault, sorry.