Page 1 of 1

Get season count

Posted: 14 Dec 2013, 14:34
by joshua
Hi,

How do i get the season count from TheTVBD ? I can't find how to do it. :(

Or how do i get the last season number ? I want to write a "Final season" tag on the directory if the serie is "Ended/Cancelled" and i'm renaming the last season.

Like this :
The Unit - Season 01 (2006)
The Unit - Season 02 (2006-2007)
The Unit - Season 03 (2007)
The Unit - Season 04 (Final) (2008-2009)
Thanks!

J

Edit : Note : I think i've posted that in the wrong forum.. is there any way to move that to the Help section?

Re: Get season count

Posted: 14 Dec 2013, 15:12
by rednoah
Easy.

Code: Select all

{episodelist.season.max()}

Re: Get season count

Posted: 14 Dec 2013, 19:39
by joshua
Thanks !

But, is there a place that list all those functions?

Re: Get season count

Posted: 15 Dec 2013, 05:10
by rednoah
It's all Groovy:
http://groovy.codehaus.org/JN1015-Collections

Predefined bindings and functions specific to FileBot format expressions are on the website with plenty of examples in the forums.