Page 1 of 1

Error when running automation script

Posted: 29 Sep 2015, 20:13
by GoodGuyHult
I tried running the following automation script in cmd:

Code: Select all

filebot -script fn:amc --log-file amc.log --def "seriesFormat=F:/Tv Shows/{n}/{'S'+s}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail().replacePart(', Part $1')} [{vf} {vc}][{ac}]" "animeFormat=E:/Anime/{n}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") .lowerTrail().replacePart(', Part $1')} [{vf} {vc}]{[group]}[{ac}]" "movieFormat=F:/Movies/{n} {y} [{vf} {vc} {ac}]/{n.replaceTrailingBrackets()} ({y}) {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'") lowerTrail()} [{vf} {vc} {ac}]" --action copy -non-strict "D:/Downloads/torrent" --def clean=y --def excludeList=amc.txt --action test
When i run this script, i get the following error:

Code: Select all

Group: [tvs:null, mov:zodiac 2007, anime:null] => [Zodiac (2007) [1080p x264 DTS
].mkv]
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
ScriptException: SyntaxError: expecting ''', found '<EOF>'
Finished without processing any files
Failure (┬░_┬░)
Does anyone know what is causing this/how to fix it?

Re: Error when running automation script

Posted: 30 Sep 2015, 02:24
by rednoah
Learn how to escape command line arguments:
viewtopic.php?f=4&t=1899

Re: Error when running automation script

Posted: 30 Sep 2015, 11:08
by GoodGuyHult
I read the post on escaping command line arguments, and after some messing around with the script, I got it running.
This is the new, working script:

Code: Select all

filebot -script fn:amc --log-file amc.log --def "seriesFormat=F:/Tv Shows/{n}/Season{s}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[\`´‘’ʻ]/, \"'\") .lowerTrail().replacePart(', Part $1')} [{vf} {vc}][{ac}]" "animeFormat=E:/Anime/{n}/{n.replaceTrailingBrackets()} - {s00e00} - {t.replaceAll(/[!?.]+$/).replaceAll(/[\`´‘’ʻ]/, \"'\") .lowerTrail().replacePart(', Part $1')} [{vf} {vc}]{[group]}[{ac}]" "movieFormat=F:/Movies/{n} ({y}) [{vf} {vc} {ac}]/{n.replaceTrailingBrackets()} ({y}) {t.replaceAll(/[!?.]+$/).replaceAll(/[\`´‘’ʻ]/, \"'\") lowerTrail()} [{vf} {vc} {ac}]" --action move -non-strict D:/Downloads/torrent --def clean=y --def excludeList=amc.txt
Thanks for the help :)