New error in 4.1: missing token: }

Any questions? Need some help?
Post Reply
Whispering Klaxon
Donor
Posts: 17
Joined: 09 Feb 2014, 04:08

New error in 4.1: missing token: }

Post by Whispering Klaxon »

Hi there, I recently upgraded to FileBot 4.1 and my AMC stopped working.

I've cleared a couple of hurdles, but here's one I can't:

My AMC command:

Code: Select all

#!/bin/bash
/Applications/Filebot.app/Contents/MacOS/filebot.sh -script fn:amc --log-file amc.log --action copy -non-strict "$1" --conflict auto --def music=n subtitles=en artwork=y backdrops=y clean=y minLengthMS=30,000 plex=minion "movieFormat=/Volumes/Cinema/Cinema/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"}/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"} -{fn.match(/CD\d+/).upper()}{\" [\$resolution \$vc \$ac \$af]\"}" "seriesFormat=/Volumes/TV/Television/\"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"}/{n} s{s.pad(2)}/{n} - {s00e00.lower()} - {t} - {\"[\$resolution \$vc \$ac \$af]\"}\"" "animeFormat=/Volumes/TV/Television/\"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /\$2, \$1/)}{n =~ y ? '' : \" (\$y)\"}/{n} s{s.pad(2)}/{n} - {s00e00.lower()} - {t} - {\"[\$resolution \$vc \$ac \$af]\"}\""
And the result:

Code: Select all

Parameter: music = n
Parameter: subtitles = en
Parameter: artwork = y
Parameter: backdrops = y
Parameter: clean = y
Parameter: minLengthMS = 30,000
Parameter: plex = minion
Parameter: movieFormat = /Volumes/Cinema/Cinema/{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{n 
Parameter: seriesFormat = /Volumes/TV/Television/"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{n 
Parameter: animeFormat = /Volumes/TV/Television/"{n.replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/)}{n 
Argument: /Volumes/Pond/Canal/The Can/Misfits Season 1-5/Misfits Season 5/Misfits.S05E06.HDTV.x264-TLA.mp4
Input: /Volumes/Pond/Canal/The Can/Misfits Season 1-5/Misfits Season 5/Misfits.S05E06.HDTV.x264-TLA.mp4
Group: [tvs:misfits] => [Misfits.S05E06.HDTV.x264-TLA.mp4]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [Misfits.S05E06.HDTV.x264-TLA.mp4] to [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng] via hash
Fetching [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng.srt]
Export [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng.srt] as: SubRip / UTF-8
Writing [Misfits.S05E06.Episode.6.720p.WEB-DL.AAC2.0.H.264-ECI-eng.srt] to [Misfits.S05E06.HDTV.x264-TLA.eng.srt]
javax.script.ScriptException: SyntaxError: missing token: }
Clean temporary extracted files
Delete /Volumes/Pond/Canal/The Can/Misfits Season 1-5/Misfits Season 5/Misfits.S05E06.HDTV.x264-TLA.eng.srt
Finished without processing any files
Failure (°_°)
I'm running:
FileBot 4.1
Mac OS X 10.7.5
java version "1.7.0_60"Java(TM) SE Runtime Environment (build 1.7.0_60-b19)Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

If anyone can see what's wrong, I'd be quite grateful :)
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: New error in 4.1: missing token: }

Post by rednoah »

There's an issue with complicated formats.

Use one of the newer revisions for a fix:
https://sourceforge.net/projects/filebo ... ebot/HEAD/
:idea: Please read the FAQ and How to Request Help.
Whispering Klaxon
Donor
Posts: 17
Joined: 09 Feb 2014, 04:08

Re: New error in 4.1: missing token: }

Post by Whispering Klaxon »

OK, will do, thanks.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: New error in 4.1: missing token: }

Post by rednoah »

No idea. I suppose newer is better. :D
:idea: Please read the FAQ and How to Request Help.
Whispering Klaxon
Donor
Posts: 17
Joined: 09 Feb 2014, 04:08

Re: New error in 4.1: missing token: }

Post by Whispering Klaxon »

Success!
Post Reply