Series Year seems to include Specials

All your suggestions, requests and ideas for future development
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Series Year seems to include Specials

Post by devster »

I recently encountered this anomaly with Ted Lasso.
This happens:

Code: Select all

filebot -list --format '{ny} - {sxe}' --q 'ted lasso' --db TheTVDB
Ted Lasso (2013) - 1x01
Ted Lasso (2013) - 1x02
Ted Lasso (2013) - 1x03
Ted Lasso (2013) - 1x04
Ted Lasso (2013) - 1x05
Ted Lasso (2013) - 1x06
Ted Lasso (2013) - 1x07
Ted Lasso (2013) - 1x08
Ted Lasso (2013) - 1x09
Ted Lasso (2013) - 1x10
Ted Lasso (2013) - 0x01
Ted Lasso (2013) - 0x03
Ted Lasso (2013) - 0x04
Ted Lasso (2013) - 0x05
However the series had its first episode in 2020.
The 2013 shows up because of a couple of YouTube sketches which are now considered special episodes.
I would expect the '{y}' of a series to reflect the first episode from a season and not the first episode ever.
Any workaround?
I only work in black and sometimes very, very dark grey. (Batman)
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Series Year seems to include Specials

Post by kim »

User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Series Year seems to include Specials

Post by rednoah »

I'll look into it. If you're using TheTVDB, and if the series start field is undefined, then FileBot will guess the year based on the episode list information.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Series Year seems to include Specials

Post by rednoah »

TheTVDB::383203 is officially marked with "firstAired":"2013-8-3" so the correct behaviour for {y} is indeed to yield 2013:
https://pastebin.com/3H5jKdv9


If you want the airdate year of the first episode, then you need to explicitly codify that in your custom format, e.g.

Code: Select all

{episodelist[0].airdate.year}
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: Series Year seems to include Specials

Post by devster »

My post wasn't really about the format itself, I was just saying I would have expected a different behaviour.
Meaning, regardless of the information on TheTVDB about the series, I was expecting '{y}' to yield the year of the first episode of the first season, and not specials.
Is "firstAired" populated by the date of the first episode including specials? Or is it manually populated?
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Series Year seems to include Specials

Post by rednoah »

devster wrote: 20 Dec 2020, 22:06 Is "firstAired" populated by the date of the first episode including specials? Or is it manually populated?
AFAIK, firstAired is indeed manually populated by the TheTVDB moderators. So this is something that would have to be adjusted by TheTVDB moderators via a change request.
:idea: Please read the FAQ and How to Request Help.
Post Reply