Soporte de The Movie Database

I have not been receiving tv episode stills lately. The values returns but it is always an empty array. Did I miss an announcement or change?

https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&append_to_response=credits,videos,images

7 respuestas (en la página 1 de 1)

Jump to last post

@bronkula said:
TV Episode stills returning empty array
I have not been receiving tv episode stills lately. The values returns but it is always an empty array. Did I miss an announcement or change?
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&append_to_response=credits,videos,images

Hmmm
I tested your URL and I think I got the images in the end.
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=THE_KEY&append_to_response=credits,videos,images

air_date    "2021-08-18"
crew    […]
episode_number  2
guest_stars […]
name    "What If… T'Challa Became a Star-Lord?"
overview    "The rough-and-tumble space pirates known as the Ravagers abduct T’Challa instead of Peter Quill."
id  3062390
production_code ""
runtime 37
season_number   1
still_path  "/urF7o2y7sG6GB53R0krSk9krw0E.jpg"
vote_average    7.152
vote_count  79
credits 
cast    […]
crew    […]
guest_stars […]
videos  
results []
images  
stills  
0   
aspect_ratio    1.778
height  2160
iso_639_1   null
file_path   "/urF7o2y7sG6GB53R0krSk9krw0E.jpg"
vote_average    5.454
vote_count  3
width   3840
1   
aspect_ratio    1.778
height  1080
iso_639_1   "en"
file_path   "/nYi8xASA30NvnohsEbSikjp0SXj.jpg"
vote_average    0
vote_count  0
width   1920

That shows a still path, but the stills array is empty.

@bronkula said:
That shows a still path, but the stills array is empty.

Sorry, English is not my native language.
I don't understand what you mean.
For me both images are available.
https://image.tmdb.org/t/p/original/urF7o2y7sG6GB53R0krSk9krw0E.jpg
https://image.tmdb.org/t/p/original/nYi8xASA30NvnohsEbSikjp0SXj.jpg

Well... that's bad, because the array is empty on my site using my api_key. Is there possibly something i'm doing wrong? https://filmswith.com/tv/91363/1/2

@bronkula said:
Well... that's bad, because the array is empty on my site using my api_key.

Now I understand.
You are talking about the still array of your page on your website.
You're not talking about the still array from the JASON page response from the TMDb API server.
Since you posted your API Request, I imagined you had tested it in a tab in your browser.
But he didn't test it.
Well, if you test it you will see that the information is there.
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=THE_KEY&append_to_response=credits,videos,images

Is there possibly something i'm doing wrong? https://filmswith.com/tv/91363/1/2

Yes, something is certainly wrong.
Does this problem occur with all films and series or just with this one in your example specifically?
Did you develop the code for your page or is it a third-party plugin/template?

So I think I've narrowed it down.
The full url i'm calling is:
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&language=en-US&include_adult=false&append_to_response=credits,videos,images
It appears that it is language=en-US that is the problem.
If this is included the api only returns an empty array.
Am I doing that wrong, or has that changed?

[edit] Also this seems to affect all shows. Not just this one.

@bronkula said:

So I think I've narrowed it down.
The full url i'm calling is:
https://api.themoviedb.org/3/tv/91363/season/1/episode/2?api_key=API_KEY&language=en-US&include_adult=false&append_to_response=credits,videos,images
It appears that it is language=en-US that is the problem.
If this is included the api only returns an empty array.
Am I doing that wrong, or has that changed?

[edit] Also this seems to affect all shows. Not just this one.

See the NOTE on this page.
https://developer.themoviedb.org/reference/tv-series-images

Note

If you have a language specified, it will act as a filter on the returned items.
You can use the include_image_language param to query additional languages.

That is, using the "&append_to_response=images" resource:

If you do not specify/use the "&language=" filter
then text information will be provided in the default language,
and images will be provided either all, all languages and/or no language (null).

But...

If you specify/use the "&language=" filter with the "&append_to_response=images" resource
then you must also specify the languages of the images you want using "&include_image_language="

For example
&include_image_language=null,pt,en,fr
In this case, use null for no language, normally backdrops do not have a language, and more Portuguese, English and French.
Separating with a comma all come from these languages.
You can add other languages you want.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión