Supporto The Movie Database

In movies & tv when you &append_to_response=images it returns an images.backdrops and images.stills collection The image usually has these fields

"aspect_ratio"
"height"
"iso_639_1": null,
"file_path": 
"vote_average":
"vote_count": 
"width": 

However the image collections have no order; there are logos & text in different languages superimposed on the images.
Can we curate the image responses that it returns english images?
when I try to set language en-US in the query params, images return empty.
https://api.themoviedb.org/3/movie/329865?api_key=<>&language=en-US&append_to_response=images.

res

...
"images": {
"backdrops": [],
"logos": [],
"posters": []
},

thanks

4 risposte (nella pagina 1 di 1)

Jump to last post

@ridhwaans said:
Curate images response in movies & tv to english
In movies & tv when you &append_to_response=images it returns an images.backdrops and images.stills collection
The image usually has these fields

"aspect_ratio"
"height"
"iso_639_1": null,
"file_path": 
"vote_average":
"vote_count": 
"width": 

However the image collections have no order; there are logos & text in different languages superimposed on the images.
Can we curate the image responses that it returns english images?
when I try to set language en-US in the query params, images return empty.
https://api.themoviedb.org/3/movie/329865?api_key=<>&language=en-US&append_to_response=images.

res

...
"images": {
"backdrops": [],
"logos": [],
"posters": []
},

thanks

You need to use Parameter &include_image_language. For example:
Images only:

https://api.themoviedb.org/3/movie/299534/images?api_key=[MY_KEY]&language=en-US&include_image_language=en,null  

OR Getting details plus images:

https://api.themoviedb.org/3/movie/329865?api_key=[MY_KEY]&language=en-US&append_to_response=images&include_image_language=en,nul 

If you do not use Parameter &include_image_language, then the &language Parameter can not contain reference to Country.
You can not use en-US, language-COUNTRY. Must only use en, language. For example:

https://api.themoviedb.org/3/movie/299534/images?api_key=[MYKEY]&language=en

@ticao2 thank you!

@ticao2 i have some additional questions if &include_image_language=en,null is set, on rare occasions, it sometimes returns an empty array of images in a tv episode response. but it depends on TV show original language or TV episode (for example tv show 61709/season/5/episode/3)
1) what does &include_image_language=null mean? if it doesnt have english images does it get nothing?
2) what does iso_639_1: null mean in movies and tv images? if a movie or tv original_language or languages is non-en, like ja, is it better not to append &include_image_language=en or append a native language?

thanks in advance

@ridhwaans said:

@ticao2 i have some additional questions if &include_image_language=en,null is set, on rare occasions, it sometimes returns an empty array of images in a tv episode response. but it depends on TV show original language or TV episode (for example tv show 61709/season/5/episode/3)
1) what does &include_image_language=null mean? if it doesnt have english images does it get nothing?
2) what does iso_639_1: null mean in movies and tv images? if a movie or tv original_language or languages is non-en, like ja, is it better not to append &include_image_language=en or append a native language?

thanks in advance

I would say that 99% of backdrops have no language.
So they are marked as no language, as null.
To receive 1% of backdrops with your language, add your language.
Or as many languages ​​as you want.
&include_image_language=null,en,ja,fr,de,pt,es,zh etc...

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