AMC - Specials

All your suggestions, requests and ideas for future development
DavidRTurner
Power User
Posts: 85
Joined: 01 Feb 2014, 16:59

Re: AMC - Specials

Post by DavidRTurner »

rednoah wrote:I'd write it like this:

Code: Select all

{allOf{s00e00}{'S'+season.pad(2)+'E'+special.pad(2)}.join(' - ')}
However, it may not work with the latest revision. The new TheTVDB API doesn't support the airs-before/after-season data yet.
It doesn't work at the moment, but I'll keep it in mind.

Thanks as always!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC - Specials

Post by rednoah »

1.
You can keep up with development here:
https://forums.thetvdb.com/viewtopic.ph ... 20#p100020


2.
If you're up for some "Fun with Formats" you could probably guess the "special season" based on the closest airdate of a regular episode ;)

Code: Select all

{episodelist.findAll{ it.airdate && !it.special }.toSorted{ Math.abs(it.airdate.timeStamp - airdate.timeStamp) }.first().season}
:idea: Please read the FAQ and How to Request Help.
DavidRTurner
Power User
Posts: 85
Joined: 01 Feb 2014, 16:59

Re: AMC - Specials

Post by DavidRTurner »

I'd thought about using the airdate, but it seems some specials aren't considered season-related by date, and are associated with a season by content - i.e. a 4th-season special relating to a season 2 plotline, can be listed as a Season 2 Special, but has a Season 4 airdate.

If I get into that, I may not be matching the sorting order in the dbase.
At the same time, it could give me a better view of how I want to see the files - by date.
As long as I can keep the dbase' episode # to check for completeness, I could use my own airdate-based one as well.
I'll look into it!
Thanks!
...and I'll keep an eye on that API thread as well...
Post Reply