دعم الموقع

Thanks

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

Jump to last post

"video:false" or "video:true" have nothing to do with the videos attached to the movie.

To get the videos, you should use the Get Videos method of the API.

@simonferndriger said:
How to get movie trailers

The meaning of the Video attribute, in the singular, can be seen here:
https://www.themoviedb.org/bible/movie#59f73b759251416e71000005
Roughly identifies what is not Movie.

The Videos parameter, in the plural, refers to trailers and other videos of the same type.
See here: https://www.themoviedb.org/bible/movie/59f3b16d9251414f2000000a
To get the Videos of a Movie, See here:
https://developers.themoviedb.org/3/movies/get-movie-videos

Example:

1 - https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY    
2 - https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=pt-BR      
3 - https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=pt-BR&include_video_language=en,fr,es,de,pt    
4 - https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&language=pt-BR&include_video_language=en,fr,es,de   
5 - https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&include_video_language=en,fr,es,de,pt  

@simonferndriger said:

  • How can I get this YouTube ID within the API?

Trailer URL

When you make an API Request requesting Videos (plural), in the response you will receive something like this:

videos  
results 
0   
iso_639_1   "en"
iso_3166_1  "US"
name    "Fight Club - Theatrical Trailer Remastered in HD"
key "6JnN1DmbqoU"
site    "YouTube"
size    1080
type    "Trailer"
official    false
published_at    "2015-02-26T03:19:25.000Z"
id  "5e382d1b4ca676001453826d"

Just add the Key in the respective URL:

YouTube: https://www.youtube.com/watch?v=  
Vimeo: https://vimeo.com/  

For example:
Youtube: https://www.youtube.com/watch?v=6JnN1DmbqoU
Youtube: https://www.youtube.com/watch?v=hzfvYSIIgyc
Vimeo: https://vimeo.com/282875052

Travis Bell said on 2020-09-19

Hi @user, we only support YouTube and Vimeo right now.

Thanks, that helped!

Please, the videos are not corresponding to the movie ID's

@Corizon said:

Please, the videos are not corresponding to the movie ID's

Without the exact query (just remove your API key) you have sent and the answer you have got, we can't help you.

This is it https://api.themoviedb.org/3/movie/61222/videos?api_key=${API_KEY} the ID "61222" is from the API, and it belongs to a movie known as "Bojack Horseman" but when I fetch the API above it returns a video trailer name known as "Home Trailer"

This is the response in JSON:

0:
 id: "533ec6b7c3a36854480063c0"
iso_639_1: "en"
iso_3166_1: "US"
key: "dRYzINrg6B4"
name: "Home Trailer"
official: false
published_at: "2009-07-22T15:06:36.000Z"
site: "YouTube"
size: 360
type: "Trailer"

@Corizon said:
This is it https://api.themoviedb.org/3/movie/61222/videos?api_key=${API_KEY}
the ID "61222" is from the API, and it belongs to a movie known as "Bojack Horseman"
but when I fetch the API above it returns a video trailer name known as "Home Trailer"
This is the response in JSON >>>
0: id: "533ec6b7c3a36854480063c0" iso_639_1: "en" iso_3166_1: "US" key: "dRYzINrg6B4" name: "Home Trailer" official: false published_at: "2009-07-22T15:06:36.000Z" site: "YouTube" size: 360 type: "Trailer"

Bojack Horseman is not a movie. It's a TV Series.
BoJack Horseman (2014)
https://www.themoviedb.org/tv/61222-bojack-horseman
Home (2008)
https://www.themoviedb.org/movie/61222-home

Oh okay, I see. Now I have to find a way to differentiate the series from the movies. Maybe, I can use some help to know if there's a way to filter the full movies from the series

One way would be to query the movie and tv details pages to see if the id exists and see which one the title matches if they both exist.

Another possibility would be to download the daily file exports to get the list of ids for all titles.

I guess I am wondering where you are getting the id numbers you want to use and why isn't there something from the source of the ids that tells what it is?

Thanks a lot @robbie3999 I finally figured it out

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

عام

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

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

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

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

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

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

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

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

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

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

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

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

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

الاعدادات

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

تسجيل الدخول