Page 1 of 1

Airdate value (season year) stays empty

Posted: 15 Nov 2023, 19:31
by hasakona
Hello,
i've been using the following expression for years, recently the Season Year/Airdate stopped working.

Instead of

Code: Select all

Series, The/Season 01 (SeasonYear)/SeriesName - S00E00 - EpisodeName [Resolution, Source, Codec]

the statement now returns the following with the SeasonYear remaining empty

Code: Select all

Series, The/Season 01 ()/SeriesName - S00E00 - EpisodeName [Resolution, Source, Codec]
I'd appreciate any hint as to why the value doesn't work anymore or how i can fix/replace/remove it.

The statement is as follows

Code: Select all

N:/{n.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/).colon(' - ')}/{'Season '+s.pad(2)} ({episodelist.findAll{ it.season == s }.airdate.year.min()})/{n} - {s00e00} - {t} [{vf}{', '+source}{', '+vc}]{subt}
Thanks!

Re: Airdate value stays empty

Posted: 16 Nov 2023, 06:05
by rednoah
:arrow: You can use the {sy} season year binding:

Format: Select all

{ sy }

Format: Select all

{ sy.min() }
:arrow: https://www.filebot.net/naming.html#sy

Re: Airdate value (season year) stays empty

Posted: 17 Nov 2023, 16:23
by hasakona
Thank you so much!

Re: Airdate value (season year) stays empty

Posted: 25 Dec 2023, 19:54
by GeorgeAl
I have the same problem.

My present is

Format: Select all

D:/WD/Series/{n.replaceTrailingBrackets()} ({episodelist.airdate.year.bounds().join ('-')})  /Season {sy.min() } ({episodelist.findAll{it.season == s}.airdate.year.min()}) / {n} - {sxe} - {t}
.

Where do I have to snack in the

Format: Select all

{ sy. min() }
to works?

Re: Airdate value (season year) stays empty

Posted: 26 Dec 2023, 08:07
by rednoah
You can put it wherever you want it to appear in the file path:

Format: Select all

{n}/Season {sy.min()}/{n} - {sxe} - {t}

Code: Select all

Firefly/Season 2002/Firefly - 1x01 - Serenity



:idea: It's essentially just a replacement pattern, you replace all the {...} with values and then you get the file path for any given episode:

Screenshot

Re: Airdate value (season year) stays empty

Posted: 26 Dec 2023, 10:06
by GeorgeAl
So, to achieve the format :

Path/Tv Show Name (Duration)/Season Numaber (Year/s)/TV Show name - Season NumberxEpisode Namuber - Episode Name I have to use this preset:

D:/WD/Series/{n.replaceTrailingBrackets()} ({episodelist.airdate.year.bounds().join ('-')}) /Season {sy.min() } ({episodelist.findAll{it.season == s}.airdate.year.min()}) / {n} - {sxe} - {t} ?

E.G. D:/WD/Series/Dr. Stone (2019-2023)/Season 3(2023)/Dr. Stone - 3x25 - Name of Episode

Re: Airdate value (season year) stays empty

Posted: 26 Dec 2023, 10:39
by rednoah
{s} is the season number. {sy} is the season years. If you want both, then you need to use both:

Format: Select all

Season {s} ({sy.min()})


Hence:

Format: Select all

D:/WD/Series
/{n.replaceTrailingBrackets()} ({episodelist.airdate.year.bounds().join('-')})
/Season {s} ({sy.min()})
/{n} - {sxe} - {t}


:idea: You will want to use the Format Editor for instant feedback on what your proposed format might do or not do:
Screenshot

Re: Airdate value (season year) stays empty

Posted: 26 Dec 2023, 13:14
by GeorgeAl
Thank you. I see my mistake.

Have a lovely Christmas!