Operator == not aceepted anymore after update to 4.1

Any questions? Need some help?
Post Reply
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

Operator == not aceepted anymore after update to 4.1

Post by bloodysoul »

Hi,
after updating to Filebot 4.1 I get this error :

Code: Select all

javax.script.ScriptException: SyntaxError: missing token: }
This is my command:

Code: Select all

filebot -script fn:amc "/media/hush/Downloads/Kung Fu Panda Legends of Awesomeness S03E16 The Eternal Chord 1080p WEB DL DD5 1 H 264-BS" --output "/media" --log-file /home/pyload/.pyload/Logs/logfbot.txt --conflict auto -non-strict --action test --def "movieFormat=anarky/MOVIES/{n==primaryTitle ? n.upperInitial().space('.') : primaryTitle.upperInitial().space('.')+'.(.'+n.upperInitial().space('.')+'.).'}.{y}.{vf}.{source}.{vc}.{ac}{'-'+group}/{n == primaryTitle ? n.upperInitial().space('.') : primaryTitle.upperInitial().space('.')+'.(.'+n.upperInitial().space('.')+'.).'}.{y}.{vf}.{source}.{vc}.{ac}{'-'+group}{if (ext == 'srt') '.'+lang}" "seriesFormat=hush/SERIES/{n}/{'Season '+s}/{if (ext == 'srt') 'Subs/'}{n.space('.')}.{'S'+s.pad(2)}E{e.pad(2)}.{t.space('.')}.{vf}.{source}.{vc}.{ac}{'-'+group}{if (ext == 'srt') '.'+lang}" clean=y artwork=n subtitles=en,de,fr deleteAfterExtract=y ignore=hotfolder
As of the output of the filebot command, here it is:

Code: Select all

Parameter: movieFormat = anarky/MOVIES/{n
Parameter: seriesFormat = hush/SERIES/{n}/{'Season '+s}/{if (ext
Parameter: clean = y
Parameter: artwork = n
Parameter: subtitles = en,de,fr
Parameter: deleteAfterExtract = y
Parameter: ignore = hotfolder
Parameter: gmail = *****
Parameter: mailto = *****
Argument: /media/hush/Downloads/Kung Fu Panda Legends of Awesomeness S03E16 The Eternal Chord 1080p WEB DL DD5 1 H 264-BS
Input: /media/hush/Downloads/Kung Fu Panda Legends of Awesomeness S03E16 The Eternal Chord 1080p WEB DL DD5 1 H 264-BS/Kung.Fu.Panda.Legends.of.Awesomeness.S03E16.The.Eternal.Chord.1080p.WEB.DL.DD5.1.H.264.BS.mkv
Group: [tvs:kung fu panda legends of awesomeness] => [Kung.Fu.Panda.Legends.of.Awesomeness.S03E16.The.Eternal.Chord.1080p.WEB.DL.DD5.1.H.264.BS.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/hush/Downloads/Kung Fu Panda Legends of Awesomeness S03E16 The Eternal Chord 1080p WEB DL DD5 1 H 264-BS/Kung.Fu.Panda.Legends.of.Awesomeness.S03E16.The.Eternal.Chord.1080p.WEB.DL.DD5.1.H.264.BS.mkv
Get [German] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/hush/Downloads/Kung Fu Panda Legends of Awesomeness S03E16 The Eternal Chord 1080p WEB DL DD5 1 H 264-BS/Kung.Fu.Panda.Legends.of.Awesomeness.S03E16.The.Eternal.Chord.1080p.WEB.DL.DD5.1.H.264.BS.mkv
Get [French] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/hush/Downloads/Kung Fu Panda Legends of Awesomeness S03E16 The Eternal Chord 1080p WEB DL DD5 1 H 264-BS/Kung.Fu.Panda.Legends.of.Awesomeness.S03E16.The.Eternal.Chord.1080p.WEB.DL.DD5.1.H.264.BS.mkv
javax.script.ScriptException: SyntaxError: missing token: }
Finished without processing any files
Failure (°_°)
I would really appreciate your help. Thanks!
User avatar
rednoah
The Source
Posts: 23942
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Operator == not aceepted anymore after update to 4.1

Post by rednoah »

This one could never have worked. Your arguments are broken already when filebot is called.

Code: Select all

Parameter: movieFormat = anarky/MOVIES/{n
Parameter: seriesFormat = hush/SERIES/{n}/{'Season '+s}/{if (ext
Or maybe there's a bug? Try not using == in the format and use .equals() instead.

EDIT:
Yep, argument parsing is broken, so you can't use = in the format for now.

EDIT2:
Fixed with r2250
:idea: Please read the FAQ and How to Request Help.
bloodysoul
Posts: 10
Joined: 10 Jun 2014, 14:45

Re: Operator == not aceepted anymore after update to 4.1

Post by bloodysoul »

Thank you for the very fast answer. You're the best.
To update to r2250, it is enough to just replace filebot.jar, right?

--
EDIT: replacing just the jar file worked. Everything back to normal.
Post Reply