[SNIPPET] Season Year(s)
Posted: 03 Jul 2012, 14:33
Here's an expression that'll get you the season year(s) of the episode in question. The season year(s) may either be a year (e.g. 2000) or an interval (e.g. 2000-2002) depending on over what period of time the season was originally aired.
Option 1: Use Episode Release Year:
Option 2: Use Season Intervals (when seasons stretch across multiple years):
EDIT: FileBot r4096 introduces the season years {sy} binding:

Similarly you can get Total Season Count like this:
EDIT: FileBot r4097 introduces the season count {sc} binding:
Option 1: Use Episode Release Year:
Format: Select all
{ d.year }
Format: Select all
{ episodelist.findAll{ it.s == s }.d.year.bounds().join('-') }
Format: Select all
{ sy.join('-') }

Similarly you can get Total Season Count like this:
Format: Select all
{ episodelist.s.max() }
Format: Select all
{ sc }