API V2 Bug - Incorrect Episode Data

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
Post Reply
Spark
Posts: 16
Joined: Mon Sep 25, 2017 8:52 am

Mon Sep 25, 2017 9:04 am

Hi,

I am using the new API for tvrename (http://www.tvrename.com/) We are in the process of moving from v1 to v2 of the API. I echo some of the calls for the series/x/episodes to return the full episode detail, rather than have to poll the full list subsequently.

Aside from that request, I have found a bug (I think). I obtain the list of episodes and then poll for details of each episode. However in the subsequent calls I am noticing discrepancies with the episode data obtained (when compared to the base information).

For example Law & Order: Criminal Intent

Show Id = 71489****{
<snip>
"data": [
<snip>
{
"absoluteNumber": 117,
"airedEpisodeNumber": 6,
"airedSeason": 6,
"airedSeasonID": 16531,
"dvdEpisodeNumber": null,
"dvdSeason": null,
"episodeName": "Masquerade",
"firstAired": "2006-10-31",
"id": 311816,
"language": {
"episodeName": "en",
"overview": "en"
},
"lastUpdated": 1490557030,
"overview": "Goren and Eames head to Vietnam to pick up Simon Henry Fife, who has recently confessed to the 1992 murder of ten-year-old actress Amberleigh Harner. Both Goren and Eames have trouble believing what Fife has to say, and it isn't long before Goren manages to find holes in Fife's story. Eames and Goren have twenty-four hours to look into the murder and turn their attention to the original investigation, contacting the original officer on the scene. Their investigation leads them to believe that the suspect may be much closer to home than anyone thought."
},
<snip>
]
}

ALL looks OK so far, but when I poll for the episode information I get:

311816****{
"id": 311816,
"airedSeason": null,
"airedSeasonID": null,
"airedEpisodeNumber": 0,
"episodeName": null,
"firstAired": "2016-09-23",
"guestStars": null,
"director": "",
"directors": null,
"writers": null,
"overview": "The Exorcist is a propulsive psychological thriller following two very different priests tackling one family’s case of horrifying demonic possession. Father Tomas Ortega is the new face of the Catholic Church: progressive, ambitious and compassionate. He runs a small, but loyal, parish in the suburbs of Chicago. Father Marcus Keane is a modern-day Templar Knight, an orphan raised since childhood by the Vatican to wage war against its enemies. Marcus is everything Tomas is not: relentless, abrasive and utterly consumed by his mission – and he constantly butts heads with his adversary within the church, Father Bennett.",
"language": {
"episodeName": "",
"overview": ""
},
"productionCode": "",
"showUrl": "",
"lastUpdated": 1506274494,
"dvdDiscid": "",
"dvdSeason": null,
"dvdEpisodeNumber": null,
"dvdChapter": null,
"absoluteNumber": null,
"filename": "",
"seriesId": 0,
"lastUpdatedBy": 0,
"airsAfterSeason": null,
"airsBeforeSeason": null,
"airsBeforeEpisode": null,
"thumbAuthor": 0,
"thumbAdded": "",
"thumbWidth": null,
"thumbHeight": null,
"imdbId": "tt5368542",
"siteRating": 8.4,
"siteRatingCount": 11
}

This has an inconsistent overview (this if for another show) and there is no value for many fields eg airedSeasonID

I checked using the Swagger page to make sure my code is not screwy and verified on the main site (attached)

I have noticed that the problem is temperamental and seems to come and go, however episodes around 311808-311818 seem to be consistently problematic.

Hope this helps

Spark
Spark
Posts: 16
Joined: Mon Sep 25, 2017 8:52 am

Mon Sep 25, 2017 9:33 am

some more examples

Issue with episode 311809 for series 71489
Issue with episode 311816 for series 71489
Issue with episode 75853 for series 72173
Issue with episode 83929 for series 72368
Issue with episode 83953 for series 72368
Spark
Posts: 16
Joined: Mon Sep 25, 2017 8:52 am

Mon Sep 25, 2017 9:46 am

Some more examples I just found

Issue with episode 307343 for series 73739
Issue with episode 311809 for series 71489
Issue with episode 311816 for series 71489
Issue with episode 311875 for series 75692
Issue with episode 332211 for series 79222
Issue with episode 75853 for series 72173
Issue with episode 83929 for series 72368
Issue with episode 83953 for series 72368
Spark
Posts: 16
Joined: Mon Sep 25, 2017 8:52 am

Thu Oct 05, 2017 6:05 pm

this has now been fixed - thanks guys
Post Reply