"not a valid identifier" after upgrade 4.7.2

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

"not a valid identifier" after upgrade 4.7.2

Post by nikeb »

Hi

after the upgrade to 4.7.2 i have this error:

"seriesFormat " is not a valid identifier

on my script that worked perfectly since then:

Code: Select all

filebot -script fn:amc --output "$HOME/Disco" --log-file amc.log --action move --conflict override -non-strict -no-xattr "$HOME/ArrivoDL" --def "seriesFormat = path/{n.space('.')}/{episode.special ? 'Specials' : \"Serie.\${s.pad(2)}\"}/{n.space('.')}.{episode.special ? 'S00E'+special.pad(2) : s00e00}{'.'+vf.match(/720[pP]|1080[pP]/)}" --def minFileSize=0 minLengthMS=0
I already delete the cache with the command -clear-cache

Thanks in advantage
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: "not a valid identifier" after upgrade 4.7.2

Post by rednoah »

You can't add spaces. "x " is not a valid parameter name, "x" is.
:idea: Please read the FAQ and How to Request Help.
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Re: "not a valid identifier" after upgrade 4.7.2

Post by nikeb »

Perfect! thank you, i just erase the space between variable and parameter:

"seriesFormat ="
in
"seriesFormat="
Post Reply