دعم الموقع

I am using the API for my university project. I only use the discover feature of the API. I build the discover request like this: var request = "http://api.themoviedb.org/3/discover/movie?with_genres=" + genre + "&sort_by=" + order + "&primary_release_year=" + year + "&page=" + page +"&api_key=" + apiKey;

It was working quite well until our instructor opened assignments for peer review. So other students are currently reviewing my project and it is not working now.

I receive object with an empty results like this: Object {page: 1, results: Array[0], total_results: 0, total_pages: 1}

I am thinking if this is a request limit issue or something similar that I'm not aware of since I am new to this API. I really need a quick reply, because this will be affecting my grading of the assignment.

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

Jump to last post

Hi there,

I will need to see an exact query I think because this is working fine for me:

https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=18&sort_by=popularity.desc&primary_release_year=2015&page=1

Hi,

I was using the query like this when there year isn't selected and it was working:

https://api.themoviedb.org/3/discover/movie?api_key=###&with_genres=18&sort_by=popularity.desc&primary_release_year=0&page=1

But I think it has changed now because the results are empty when the year is set to 0. It works fine for other year options(2014, 2013..). I fixed the problem by removing the "primary_release_year" from the query completely instead of setting it to 0. I think its an improvement, however I couldn't see it in the recent updates.

Thanks for replying quickly!

Happy to hear you sorted it out!

Cheers.

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول