Hi !
Okay I try to sync all my db with TMDB. Its fine with every element (companies, genres, persons, etc...) except with movies. My problem is I can't have all videos from a movie with a single request. With images I just have to add append_to_response
: image
without any language
specified for having all images languages for a movie. But with videos isn't working, because the default language is "en-US". So how can I query all videos for a movies without make a query for each language which seems too expensive in term of api request (especially when we have to get +1 millions of movies).
Thx for ur help !
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on October 18, 2024 at 10:55 AM
Hmm...
English is not my native language.
I wrote this answer a long time ago.
I hope nothing has changed.
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 - If you don't use &language= parameter, it gets the default in English. en.
2 - If you only use the &language= parameter, receive in the chosen language
3 - If you also use the &include_video_language= parameter, you receive only in the languages specified in that parameter,
4 - and don't receive the referring to &language= if the language is not in the list of &include_video_language=
5 - If you only use the &include_video_language= parameter, receive in the languages specified in that parameter.
In other words,
Using "&include_video_language=" the "&language=" parameter will not be considered for video languages.
Reply by ticao2 š§š· pt-BR
on October 18, 2024 at 11:02 AM
And I believe using "&append_to_response=videos" with this filter "&include_video_language=" should also work.
Reply by loupqhc
on October 18, 2024 at 12:04 PM
Thx a lot for your help ! Okay so :
So I guess for having all videos in every languages, I have to use this ?
And for getting all languages I just have to query this endpoint :
Am I right ? But when doing this, I have no results, maybe because there is a limit of listed languages in
include_video_language
(seems to be 5 because when I do :co,cr,cy,de,aa,en
for a movie I have 0 results invideos
but when I doco,cr,cy,de,en
I have a result (inen
language)). So I dont know how get every video...Reply by ticao2 š§š· pt-BR
on October 18, 2024 at 5:48 PM
Yes.
Yes, I tested it and also found this barrier.
I don't know any other way.
Let's wait for Travis Bell, the administrator, to stop by.
Reply by loupqhc
on October 21, 2024 at 11:30 AM
Well I've try a bunch of stuff without success š