Supporto 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 risposte (nella pagina 1 di 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.

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