The Movie Database Support

I have a selfish clarifying question. Ultimately, the answer to my question is probably "my code should be more forgiving", but I can't help but ask.

Are there any sort of guarantees — implied or otherwise — that data will have a minimum of fields, like, id?

As I sit here right now, if you load Ted Lasso Season 2 (API URL: https://api.themoviedb.org/3/tv/97546/season/2 ) returns the following crew member:

{
  "job": "Second Assistant Director",
  "department": "Directing",
  "person_id": "5c932a84c3a36861abe32a17",
  "credit_id": "61582e858e2ba6008be0742c"
}

This is episodes[8].crew[17]. It doesn't even have an id. Which, coincidentally, my JSON parsing code considers table stakes.

Is this… expected? I feel like this should be filtered out and/or rejected on the API level, but I'll be the first to admit it's completely self-centered for me to say so.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login