API reporting different details to website?

Discussion about the website and interfaces.
Report general bugs here.
Forum rules
DO NOT POST SERIES REQUESTS HERE.
Use the appropriate forum.
Requests posted here are subject to immediate deletion.
Carr0t
Posts: 2
Joined: Wed Aug 01, 2012 3:57 pm

API reporting different details to website?

Postby Carr0t » Mon May 21, 2018 4:01 pm

I'm having issues using TVDB to scrape data for 2x04 of Westworld. This episode: https://www.thetvdb.com/series/westworl ... es/6690283

Thing is, that episode reports correctly season 2 episode 4. But when I look at the information my plugin has scraped only 10 minutes ago in debug mode (when it correctly got the data for episodes 1, 2, 3 and 5), it is reporting that episode as being season 0, episode 0. See the snippet from my debug log here https://pastebin.com/1B3YAMgZ

So I understand why my scraper isn't finding the relevant episode, but I *don't* understand why that episode, which appears to have been configured with the same details as others in the series on the web interface, is not reporting the same information via the API. Can anyone shed some light on this? Even if I am able to alter the data on TVBD I don't know what I should be altering it *to*, because as far as I can tell it should already be reporting the correct data...

Maretoh
Posts: 3182
Joined: Sat Mar 07, 2015 8:19 am
Location: France

Re: API reporting different details to website?

Postby Maretoh » Mon May 21, 2018 4:06 pm

It's because you're using the DVD Order, that was set to S00E00. I've updated it, it should work when the API is updated.
An episode a day keeps the doctor away.

Carr0t
Posts: 2
Joined: Wed Aug 01, 2012 3:57 pm

Re: API reporting different details to website?

Postby Carr0t » Mon May 21, 2018 4:28 pm

Cool, thanks :)

Bit of a followup question as I'm trying to understand it, if I may. Is the DVD Order shown on the website anywhere? I assumed it was the "DVD Season and Episode Number" heading in the table, but that field was blank for all the episodes that my scraper *did* successfully scrape as well, so is there some hidden field that's in the API but not on the website?

Maretoh
Posts: 3182
Joined: Sat Mar 07, 2015 8:19 am
Location: France

Re: API reporting different details to website?

Postby Maretoh » Mon May 21, 2018 4:48 pm

It can only be seen when editing the episode for now:
https://www.thetvdb.com/series/westworl ... 90283/edit
It's not yet repercuted on the episode details itself.
There was a bug before setting all DVD/Absolute order to 0, it looks like this has been fixed in the meantime but that could explain it. Feel free to update the details on your episodes.
An episode a day keeps the doctor away.