Page 1 of 1

def exec synatax error

Posted: 26 Sep 2017, 15:52
by erty56
Part of my filebot command contains "--def exec=" which calls on a command that uses a regex. Part of the regex uses curly braces to detect repetition i.e. {1,3}
The curly braces seem to break filebot:

Code: Select all

SyntaxError: unexpected token: 1
Is there any way to get around it?

Re: def exec synatax error

Posted: 27 Sep 2017, 05:37
by rednoah
{...} is interpreted by FileBot so you can't use those bash constructs in a FileBot exec expression.

:idea: I recommend creating a shell script that does the job and then simply call that with the appropriate arguments after you have tested it manually.