Page 1 of 1

SyntaxError in v4.6

Posted: 12 Jun 2015, 07:00
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

Re: SyntaxError in v4.6

Posted: 12 Jun 2015, 09:27
by rednoah
Times when there was no {airdate} binding? I don't even remember... :D

Code: Select all

{airdate}

Re: SyntaxError in v4.6

Posted: 16 Jun 2015, 13:55
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?

Re: SyntaxError in v4.6

Posted: 16 Jun 2015, 15:28
by rednoah
I mean replace everything you have with just {airdate} ...

As in:

Code: Select all

{n} - {s00e00} - {t} - {airdate}

Re: SyntaxError in v4.6

Posted: 16 Jun 2015, 16:29
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

Re: SyntaxError in v4.6

Posted: 16 Jun 2015, 16:37
by rednoah
Nope. Looks like single blank is enforced for any space character sequence.

Re: SyntaxError in v4.6

Posted: 16 Jun 2015, 17:58
by JoeSchmoe
Ok, thanks for all your help!