I was running a Filebot (r9302) script in SABnzbd on a QNAP NAS with no problems until a few days ago. I don't exactly know what happened, but somehow the script now results in an error:
Code: Select all
/share/Download/SABnzbd Scripts/filebot-movies.sh: line 8: "{n.colon(' - ')} ({y}) { "{edition-${tags.first()}}" } - {vf}{' CD'+pi}{any{subt}{f.subtitle ? fn =~ /forced/ ? '.ger.forced' : '.ger' : null}}": bad substitution
Code: Select all
#!/bin/bash
cd "$1"
ls -A -R -g -p --group-directories-first > filelist.txt
sleep 1
find . \( -path "*/Subs/*" -o -path "*/subs/*" -o -path "*/SUBS/*" -o -path "*/Trailers/*" \) -print -exec mv {} ./ \; && find . -type d -empty -delete
sleep 2
filebot -rename -r "$1" --db TheMovieDB -non-strict --lang German \
--conflict override -non-strict \
--file-filter "none{ ext =~ /jpg|png|nfo|txt|dts|dtshd|mka|thd|ac3|eac3|ass/ }{ fn.match(/sample|trailer/) }{ f =~ /Extras|Featurettes/ }" \
--format "{n.colon(' - ')} ({y}) { "{edition-${tags.first()}}" } - {vf}{' CD'+pi}{any{subt}{f.subtitle ? fn =~ /forced/ ? '.ger.forced' : '.ger' : null}}"
echo "Done. Refreshing library..."
sleep 4
curl -s "http://192.168.0.151:32400/library/sections/1/refresh?X-Plex-Token=RQ5PPsQF6s6Jfbqvjfuo"
sleep 2
echo Done