Fields missing from API V2 returned data

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
chukpeev
Posts: 1
Joined: Fri Jun 02, 2017 8:10 am

Fields missing from API V2 returned data

Postby chukpeev » Fri Jun 02, 2017 8:18 am

I tried to add a trello card to report this bug but for some reason I can only view current bugs (on both trello boards).

According to https://api.thetvdb.com/swagger, /episodes/{id} returns (among other things):

"airsAfterSeason": 0,
"airsBeforeEpisode": 0,
"airsBeforeSeason": 0

Unfortunately, those fields are nowhere to be found.

Below is the data returned from V2 (the episode has airs after season and this shows up fine in the old API) for this episode:

http://thetvdb.com/?tab=episode&seriesi ... 7482&lid=7

(this also happens on all other episodes I checked - airsAfterSeason, airsBeforeEpisode, airsBeforeSeason are never returned).



Code: Select all

[63]=>
  object(stdClass)#129 (12) {
    ["absoluteNumber"]=>
    NULL
    ["airedEpisodeNumber"]=>
    int(5)
    ["airedSeason"]=>
    int(0)
    ["airedSeasonID"]=>
    int(535666)
    ["dvdEpisodeNumber"]=>
    NULL
    ["dvdSeason"]=>
    NULL
    ["episodeName"]=>
    string(19) "Holiday Spectacular"
    ["firstAired"]=>
    string(10) "2016-12-19"
    ["id"]=>
    int(5837482)
    ["language"]=>
    object(stdClass)#130 (2) {
      ["episodeName"]=>
      string(2) "en"
      ["overview"]=>
      string(2) "en"
    }
    ["lastUpdated"]=>
    int(1496273837)
    ["overview"]=>
    string(670) "America's Got Talent will celebrate the holidays with the festive, star-studded America's Got Talent: Holiday Spectacular, featuring this season's winner Grace VanderWaal, along with fan favorites The Clairvoyants, Brian Justin Crum and the Olate Dogs, special guests Penn & Teller and suave crooner Sal Valentinetti, who performs a festive "Santa Baby" with Heidi Klum. Additional performances include Season 5 phenom Jackie Evancho, Season 9 winner Mat Franco, The Regurgitator and daredevil Professor Splash, who will perform a seasonally appropriate dive into a pool of eggnog. Nick Cannon hosts with Mel B, Klum, Simon Cowell and Howie Mandel joining in on the fun."
  }

maximevalette
Posts: 1
Joined: Sun Jul 16, 2017 10:03 am

Re: Fields missing from API V2 returned data

Postby maximevalette » Sun Jul 16, 2017 10:07 am

It would also be nice to have them on the /series/XXX/episodes call since it's pretty much needed to sort episodes.


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 2 guests