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 回复(第 1 页,共 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.

找不到电影或节目?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)上一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区