SyntaxError: expecting EOF, found '8'

All your suggestions, requests and ideas for future development
Post Reply
marciton
Posts: 22
Joined: 11 Mar 2020, 23:39

SyntaxError: expecting EOF, found '8'

Post by marciton »

Hello,
I'm using the same command since years and now I have a strange error. Any idea how to push the troubleshouting?:

Code: Select all

usr/local/bin/filebot -rename --log ALL --format @/var/services/homes/toto/format.txt --lang en --db TheTVDB --q @title.txt --filter "s==08" *.mkv
* Consider using --apply refresh to refresh file services and media library

Did you read the manual?
└ https://www.filebot.net/manpage.html

Did you quote and escape your arguments correctly?
└ https://www.filebot.net/help/args.html

args[1] = -rename
args[2] = --log
args[3] = ALL
args[4] = --format
args[5] = {n} - {s00e00} - {t}
args[6] = --lang
args[7] = en
args[8] = --db
args[9] = TheTVDB
args[10] = --q
args[11] = 'The Flash'
args[12] = --filter
args[13] = s==08
args[14] = one.toto.2014.s08e01.1080p.web.h264-titi[bob.tom].mkv

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: expecting EOF, found '8' @ line 1, column 5.
   s==08
       ^

1 error

javax.script.ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: expecting EOF, found '8' @ line 1, column 5.
   s==08
       ^

1 error

	at net.filebot.format.ExpressionEngine.compileScriptlet(Unknown Source)
	at net.filebot.format.ExpressionEngine.compileScript(Unknown Source)
	at net.filebot.format.ExpressionFilter.<init>(Unknown Source)
	at net.filebot.cli.ArgumentBean.getExpressionFilter(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runCommand(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script1.groovy: 1: expecting EOF, found '8' @ line 1, column 5.
   s==08
       ^

1 error

	... 7 more

Error (o_O)
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: strange Java error

Post by rednoah »

YES:

Code: Select all

s == 8
Image


NO, because 01 02 etc are Octal literals and octal numbers only go up to 7 and then carry over to 10 (octal; equals 8 decimal)

Code: Select all

s == 08
Image
:idea: Please read the FAQ and How to Request Help.
marciton
Posts: 22
Joined: 11 Mar 2020, 23:39

Re: SyntaxError: expecting EOF, found '8'

Post by marciton »

Thanks, I will modify my script to take care of it...
Post Reply