دعم الموقع

My app uses /search to search for TV show and movie information. However, the responses do not contain any of the following properties:

  • imdb_id {both movies and TV shows}
  • runtime {movies}
  • episode_runtime[0} (does anybody know what type of data is stored in this array?) || last_episode_to_air.runtime {TV shows}
  • number_of_seasons {TV shows}
  • number_of_episodes {TV shows}

I came across the 'append to response' section in the documentation, but none of the requests below append any information to the response. Does anybody know why? What am I doing wrong?

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=details

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=runtime,imdb_id

https://api.themoviedb.org/3/search/${mediaType}?query=${encodeURIComponent(query)}&include_adult=true&language=en-US&page=1&append_to_response=number_of_seasons,number_of_episodes,episode_runtime,last_episode_to_air

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

Jump to last post

@falez said:

My app uses /search to search for TV show and movie information. However, the responses do not contain any of the following properties:

  • imdb_id {both movies and TV shows}
  • runtime {movies}
  • episode_runtime[0} (does anybody know what type of data is stored in this array?) || last_episode_to_air.runtime {TV shows}
  • number_of_seasons {TV shows}
  • number_of_episodes {TV shows}

I came across the 'append to response' section in the documentation,
but none of the requests below append any information to the response. Does anybody know why? What am I doing wrong?

Does not work with Search.
Only with the Details method, using the Movie, TV Show or Person item ID.
See
https://developer.themoviedb.org/docs/append-to-response

append_to_response is an easy and efficient way to append extra requests to any top level namespace. The movie, TV show, TV season, TV episode and person detail methods all support a query parameter called append_to_response.

@ticao2 said:

Shucks! I guess I am forced to make 2 separate requests then :(

Thanks for the information.

@ticao2 said:

@falez said:

TV show details: response.episode_runtime[0}

Any idea what type of data this array contains? And in what format? So far, it has always returned an empty array for every TV show that I have searched for.

@falez said:

@falez said: > TV show details: response.episode_runtime[0}

Any idea what type of data this array contains?
And in what format?
So far, it has always returned an empty array for every TV show that I have searched for.

Many years ago, when TMDb was born, there was only the runtime value of a standard episode of a TV series.
In the past, when broadcast TV was the norm, this value was more respected by producers.
The runtime differences between episodes of a series were minimal.
There were laws determining how much advertising or commercial time the broadcasters could show per hour of programming.
If I remember correctly, some countries it was 12 minutes per hour and others it was 8 minutes per hour.

With the advent of Cable TV and Streaming, everything changed.
So users asked for a runtime field to be added with a specific value for each episode.
This field was added to the database about 2 years ago.
If this field is blank, it is because no user has added the value.
The format should be minutes.

@ticao2 said:

@falez said:

@falez said: > TV show details: response.episode_runtime[0}

Any idea what type of data this array contains?
And in what format?
So far, it has always returned an empty array for every TV show that I have searched for.

Many years ago, when TMDb was born, there was only the runtime value of a standard episode of a TV series.
In the past, when broadcast TV was the norm, this value was more respected by producers.
The runtime differences between episodes of a series were minimal.
There were laws determining how much advertising or commercial time the broadcasters could show per hour of programming.
If I remember correctly, some countries it was 12 minutes per hour and others it was 8 minutes per hour.

With the advent of Cable TV and Streaming, everything changed.
So users asked for a runtime field to be added with a specific value for each episode.
This field was added to the database about 2 years ago.
If this field is blank, it is because no user has added the value.
The format should be minutes.

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

@falez said:

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

I think so. In minutes.
Of course, some user needs to add this data.

@ticao2 said:

@falez said:

hm, so is response.episode_runtime an array that contains the runtime of each episode as a number?

I think so. In minutes.
Of course, some user needs to add this data.

Ah, I see. Thanks again for your help!!

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول