תמיכת The Movie Database

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.

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס