can someone help me with me amc definition syntax?

Any questions? Need some help?
Post Reply
n1ete
Posts: 5
Joined: 19 Mar 2017, 02:43

can someone help me with me amc definition syntax?

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

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

Post 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
:idea: Please read the FAQ and How to Request Help.
n1ete
Posts: 5
Joined: 19 Mar 2017, 02:43

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

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

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

Post 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.
:idea: Please read the FAQ and How to Request Help.
n1ete
Posts: 5
Joined: 19 Mar 2017, 02:43

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

Post by n1ete »

helped and worked

thanks a lot!
Post Reply