SyntaxError in v4.6

Support for Windows users
Post Reply
JoeSchmoe
Posts: 4
Joined: 12 Jun 2015, 06:51

SyntaxError in v4.6

Post by JoeSchmoe »

Hi RedNoah,

Thanks so much for your assistance a few years back with an expression in FileBot that pulls airdates for episodes. Saved me a great deal of time when renaming.

Unfortunately the expression isn't working in v4.6. It still works ok for v3.4.
The expression is:
{episode} 720p web-dl {sid=new net.sourceforge.filebot.web.TVRageClient().search(n)[0].showId; new XmlSlurper().parse("http://services.tvrage.com/feeds/episod ... p=${s}x${e}").episode.airdate}

When inserted into v4.6 there is an error that appears:
SyntaxError : unable to resolve class net.sourceforge.bilebot.web.TVRageClient

Thanks,
Joe
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SyntaxError in v4.6

Post by rednoah »

Times when there was no {airdate} binding? I don't even remember... :D

Code: Select all

{airdate}
:idea: Please read the FAQ and How to Request Help.
JoeSchmoe
Posts: 4
Joined: 12 Jun 2015, 06:51

Re: SyntaxError in v4.6

Post by JoeSchmoe »

Thanks for looking into this rednoah.
I tried:
{episode} dvdrip {sid=new net.sourceforge.filebot.web.TVRageClient().search(n)[0].showId; new XmlSlurper().parse("http://services.tvrage.com/feeds/episod ... p=${s}x${e}").episode.{airdate}

But now get the error:
SyntaxError: missing token: }

Have I inserted {airdate} in the right place?
User avatar
rednoah
The Source
Posts: 22974
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: SyntaxError in v4.6

Post by rednoah »

I mean replace everything you have with just {airdate} ...

As in:

Code: Select all

{n} - {s00e00} - {t} - {airdate}
:idea: Please read the FAQ and How to Request Help.
JoeSchmoe
Posts: 4
Joined: 12 Jun 2015, 06:51

Re: SyntaxError in v4.6

Post by JoeSchmoe »

Thanks rednoah,

Works a treat now. Just another quick question. Is there a way to insert a double space?
When I try to get a double space between items e.g.
{n} - {s00e00} - {t} - {airdate}
It ignores additional spaces.

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

Re: SyntaxError in v4.6

Post by rednoah »

Nope. Looks like single blank is enforced for any space character sequence.
:idea: Please read the FAQ and How to Request Help.
JoeSchmoe
Posts: 4
Joined: 12 Jun 2015, 06:51

Re: SyntaxError in v4.6

Post by JoeSchmoe »

Ok, thanks for all your help!
Post Reply