Can I do this with actual regular expression funcionality? We maybe would need/create a tag like "seasonairdate" for archive shows:
Expression ---> Result
"\Season {s} ({seasonairdate})\" ---> "Season 4 (2010-2011)"
First year is date of first episode and second is the last episode of the season.
Lot of thanks!! Filebot is the best!!!
Need season interval
Re: Need season interval
Sorry, that info so not available in the context of an episode expression. Don't really plan on supporting something like that now.
When I get back from my holiday I'll see if I can write you an expression hooking into Filebot internals. That should work just like localised titles long before it was actually supported.
When I get back from my holiday I'll see if I can write you an expression hooking into Filebot internals. That should work just like localised titles long before it was actually supported.
Re: Need season interval
I'm not adding that as an official binding but here is how it works:
Code: Select all
{def tvdb = net.sourceforge.filebot.WebServices.TheTVDB; def y = tvdb.getEpisodeList(tvdb.search(n)[0], Locale.ENGLISH).findAll{it.season == s}.airdate.year; y.min() + '-' + y.max()}
Re: Need season interval
This simplified expression works in newer versions:
Code: Select all
{episodelist.findAll{it.season == s}.airdate.year[0,-1].join('-')}