Page 1 of 1

Series air date 19xx-20xx

Posted: 28 Jun 2024, 21:57
by ArcherCC
Hey all, wondering how I can set my folder naming to be "Show - [19xx-20xx]" instead of just "Show - [19xx]"

I tried {sy} but that changes just creates a new folder per year.

Thanks.

Re: Series air date 19xx-20xx

Posted: 29 Jun 2024, 03:49
by rednoah
:idea: {sy} refers to the season years, i.e. the years in which the season of the episode at hand aired:

Console Output: Select all

$ filebot -list --q "Alias" --db TheMovieDB::TV --filter "e == 1" --format "{sy} {episode}"
[2001, 2002] Alias - 1x01 - Truth Be Told
[2002, 2003] Alias - 2x01 - The Enemy Walks In
[2003, 2004] Alias - 3x01 - The Two
[2005] Alias - 4x01 - Authorized Personnel Only (1)
[2005, 2006] Alias - 5x01 - Prophet Five



:arrow: You can get the airdate year of the first aired and last aired episodes - the series years - like so:

Format: Select all

{ episodelist.airdate.year.bounds().join('-') }

Code: Select all

2001-2006
:arrow: Holistic formats with the {episodelist} binding