The Movie Database 支持

It seems like the API is returning empty results for some movies when it should return actual results.

Here's an example:

This works: https://api.themoviedb.org/3/movie/550/images?api_key=###.

This doesn't: https://api.themoviedb.org/3/movie/63492/images?api_key=###

The second movie, What's Your Number, has lots of images that should be displayed when using that call, but it doesn't work. Any help?

I've read this following topic, but I'm not making any calls with a language filter: http://www.themoviedb.org/talk/508ecd2f19c295550b0000ba. Curiously, though, it does work when adding a language parameter. Shouldn't it return all images when not specifying the language?

22 回复(第 2 页,共 2 页)

Jump to last post

上一页

Are there any more cases of this that you guys are aware of? Everything reported is back to working at the moment.

Hosam, this call by the way:

https://api.themoviedb.org/3/movie/1366?api_key=####&language=en&append_to_response=images

Will only include images marked as 'en' since you're specifying the language param. This is exactly how it's designed. Specifying this param acts as a filter.

https://api.themoviedb.org/3/movie/1366?api_key=###&append_to_response=images

Is an open ended image call. This is how the API has always worked and is designed. It's the same as just calling:

https://api.themoviedb.org/3/movie/1366/images?api_key=###

I'm still considering a image_language param, but for now I want to get this bug fixed but without being able to see it it's hard for me to find.

Aha! I figured it out. Ok, I'll have the fix for this pushed out later today hopefully.

Great news, Travis! Thanks for the help.

Ok, so the cause of the empty results should be live. Assuming there isn't another bug lingering, the empty results came from people not specifying a value for language. Example:

https://api.themoviedb.org/3/movie/550?api_key=###&append_to_response=images&language=

This would cache the image response as a 'en' call but it isn't. The ?language param is only kept around now if it's actually got a value. I have seen some apps do this before. They specify all the params and then only fill in the values based on the request their user actually makes.

There could still be some cached responses, but within the next ~24 hours, these empty responses should go away. If they don't, make sure to let me know.

thanks travis really appreciate it :). Well done man!

Travis you can mark that topic as closed because it is fixed. I tried numerous movies and never got any issues so far

I still see empty result on some movies. For example,

http://api.themoviedb.org/3/movie/11255/images?api_key=###

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区