Page 1 of 1

can someone help me with me amc definition syntax?

Posted: 19 Mar 2017, 02:50
by n1ete
Hello everybody, i hope someone can watch with me over my amc expression command and help me understanding why i got an syntax error in linux command shell (ubuntu 16.04)

i copyd most of the stuff out of the windows version i used before and want to put it now on server side...

Code: Select all

filebot -script fn:amc --output "/mnt/media/test" --action copy -non-strict "/mnt/media/testin" --log-file amc.log --def unsorted=y --def excludeList=amc.txt --def movieFormat="/mnt/media/Film/{n.replaceAll(/[:*?"<>|?]/).replaceAll(/[`´‘’?]/, "'")} ({y})/{n.space('_').replaceAll(/&/,"and").replaceAll(/#/,"number").replaceAll("[^a-zA-Z0-9_-]", "").lowerTrail().replacePart('Part_$1')}.{y}{".$resolution"}{".$vc"}{".$vf"}{".$source"}{".$ac"}{".$af"}" seriesFormat="/mnt/media/TV{n}/Season {s.pad(2)}/{n.upperInitial().space('.').replaceAll(/[,]+/)}.{s00e00}.{t.upperInitial().space('.').replaceAll(/[,]+/)}{'.'+vf.match(/720[pP]|1080[pP]/)}{".$vc"}{'-'+fn.match(/(?:(?<=[-])\w+$)|(?:^\w+(?=[-]))/)}"
thanks for your time ;)
and welcome everyone here

Re: can someone help me with me amc definition syntax?

Posted: 19 Mar 2017, 07:08
by rednoah
1.
What does the error say? I will never understand why people post and ask for help with "an error" and then fail to include what that error says... Why? Seriously, why? :lol:

Image


2.
I'd avoid passing complex argument on the command-line altogether, so you don't have to worry about doing it correctly:
viewtopic.php?f=3&t=3244

Re: can someone help me with me amc definition syntax?

Posted: 19 Mar 2017, 15:07
by n1ete
So the error i get from the posted command is:

Code: Select all

bash: syntax error near unexpected token `|'
but i will try to put the complex expressions in a file and report back.....

Re: can someone help me with me amc definition syntax?

Posted: 19 Mar 2017, 15:44
by rednoah
That's an argument parser error. Using @files for complex format expressions (that contain shell operators such as pipe) will resolve the issue.

Re: can someone help me with me amc definition syntax?

Posted: 20 Mar 2017, 18:43
by n1ete
helped and worked

thanks a lot!