Error in script using format expression

Any questions? Need some help?
Post Reply
DHoarder
Posts: 12
Joined: 12 Nov 2015, 10:02

Error in script using format expression

Post by DHoarder »

I'm using Ithiel's format expression in AMC script

Code: Select all

filebot -script fn:amc --output "/mnt/MyMedia" --log-file amc.log --action test -non-strict "/mnt/data/torrents/2001.A.Space.Odyssey.1968.1080p.BluRay.x264.anoXmous" --def "movieFormat=//mnt/MyMedia/Movies/{collection.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/).replaceFirst(/^(?i)(Collection of the)\s(.+)/, /$2 Collection/).replaceAll(/Saga Collection/, "Saga").replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ")}\{norm = {it.upperInitial().lowerTrail().replaceTrailingBrackets().replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper() }).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, { it.lower() }).replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)}; norm(n)}{if (norm(n) != norm(primaryTitle)) ' ('+norm(primaryTitle)+')'}{fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""} ({y}{' '+any{certification}{imdb.certification}.replaceAll(/^\d+$/, 'PG-$0')})/{norm(n)}{fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/[._]/, " ") + ')'}{" Part $pi"}{" [$vf $vc $ac $af]"}"
This gives following error:

Code: Select all

-bash: syntax error near unexpected token `('
Any ideas?
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Error in script using format expression

Post by rednoah »

Your command-line call is wrong:
viewtopic.php?f=4&t=1899
:idea: Please read the FAQ and How to Request Help.
Post Reply