دعم الموقع

I am using python to get acting credits from an actor entered and then check each movie in their catalogue's TMDB score. Is there a way to differentiate whether an item in an actors acting credits is for a movie or tv series? This is roughly the code I am using: actorID = 3 persons = person.movie_credits(actorID)

And then I am going through each result like this: for i in range(len(persons['cast'])): movieID = persons['cast'][i]['id'] rating = persons['cast'][i]['vote_average']

But I can't tell what type each result is. I also tried looking at the details of each movie with the TMDB ID but I don't see a media_type field or anything similar

Any help would be great! Thanks!!

2 ردود (على هذه الصفحة 1 من 1)

Jump to last post

Your question implies that you are using some 3rd party api wrapper, which I cannot comment on because I don't know it, but in general – every credit returned by TMDB API should include a "media_type" element, which can be either "movie" or "tv". See also details on response here: https://developer.themoviedb.org/reference/person-combined-credits

Okay gotcha! I didn't realize combined credits was an option. I double checked and I am using movie credits, not combined credits so everything should already be a movie. I think the things that were getting though were things technically listed as movies but were also episodes? Not exactly sure but thank you for your help!

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول