Try 30 days of free premium.

New attribute "type" missing from episodes depending on the endpoint used

VortX wrote 15 days ago: 1

The new attribute "type" for episodes is missing in the /show/{id}/episodes endpoint:

http://api.tvmaze.com/shows/2/episodes?specials=1

[

 {

   "id": 28,

   "url": "http://www.tvmaze.com/episodes/28/person-of-interest-1x01-pilot",

   "name": "Pilot",

   "season": 1,

   "number": 1,

   "airdate": "2011-09-22",

   "airtime": "21:00",

   "airstamp": "2011-09-23T01:00:00+00:00",

   "runtime": 60,

...

]

It is present in the episodes endpoint or when embedding episodes into a show:

http://api.tvmaze.com/episodes/28

{

 "id": 28,

 "url": "http://www.tvmaze.com/episodes/28/person-of-interest-1x01-pilot",

 "name": "Pilot",

 "season": 1,

 "number": 1,

 "type": "regular",

 "airdate": "2011-09-22",

 "airtime": "21:00",

 "airstamp": "2011-09-23T01:00:00+00:00",

 "runtime": 60,

...

}

http://api.tvmaze.com/shows/2?embed[]=episodes

{

...

 "_embedded": {

   "episodes": [

     {

       "id": 28,

       "url": "http://www.tvmaze.com/episodes/28/person-of-interest-1x01-pilot",

       "name": "Pilot",

       "season": 1,

       "number": 1,

       "type": "regular",

       "airdate": "2011-09-22",

       "airtime": "21:00",

       "airstamp": "2011-09-23T01:00:00+00:00",

       "runtime": 60,

...

}

I need to use the endpoint /show/{id}/episodes?specials=1 in my app because /shows/{id}?embed[]=episodes does not include specials.

Is this behavior intended or is it an error?


david wrote 15 days ago: 2

Right, thanks for noticing. You're looking at a stale cache, should be refreshed soon!

VortX wrote 15 days ago: 1

Yes, it works now. Thanks a lot!

Try 30 days of free premium.