Series air date 19xx-20xx

All about user-defined episode / movie / file name format expressions
Post Reply
ArcherCC
Posts: 4
Joined: 10 Mar 2023, 02:11

Series air date 19xx-20xx

Post 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.
User avatar
rednoah
The Source
Posts: 24033
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Series air date 19xx-20xx

Post 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
:idea: Please read the FAQ and How to Request Help.
Post Reply