Supporto The Movie Database

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 !

5 risposte (nella pagina 1 di 1)

Jump to last post

@loupqhc said:
How get all videos in every language with 1 query for a movie ?
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 !

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 - 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  

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.

And I believe using "&append_to_response=videos" with this filter "&include_video_language=" should also work.

Thx a lot for your help ! Okay so :

  • 1,2,3,4 can't work for me right ?

So I guess for having all videos in every languages, I have to use this ?

https://api.themoviedb.org/3/movie/550/videos?api_key=THE_KEY&include_video_language=en,fr,es,de,pt,...

And for getting all languages I just have to query this endpoint :

https://api.themoviedb.org/3/configuration/languages

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,enfor a movie I have 0 results in videos but when I do co,cr,cy,de,en I have a result (in en language)). So I dont know how get every video...

@loupqhc said:
Am I right ?

Yes.

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,enfor a movie I have 0 results in videos but when I do co,cr,cy,de,en I have a result (in en language)). So I dont know how get every video...

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.

Well I've try a bunch of stuff without success 😅

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi