Error when running automation script

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
GoodGuyHult
Posts: 2
Joined: 29 Sep 2015, 20:08

Error when running automation script

Post 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?
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error when running automation script

Post by rednoah »

Learn how to escape command line arguments:
viewtopic.php?f=4&t=1899
:idea: Please read the FAQ and How to Request Help.
GoodGuyHult
Posts: 2
Joined: 29 Sep 2015, 20:08

Re: Error when running automation script

Post 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 :)
Post Reply