The Movie Database 支持

I happened to notice that for some queries the API is returning conflicting numbers of results, total_results is sometimes higher than the actual number of results, as an example, querying for 'Kung Fu Panda' returns:

{ "page": 1 "results": { "0": { "adult": "false" "backdrop_path": "/UJwhgwAxU42cm9XKncO9boFAEV.jpg" "id": 9502 "original_title": "Kung Fu Panda" "release_date": "2008-06-05" "poster_path": "/kShWOYf66HOuHTuCdIULgW4D60S.jpg" "popularity": 6.76111832255882 "title": "Kung Fu Panda" "vote_average": 6.4 "vote_count": 878 } "1": { "adult": "false" "backdrop_path": "null" "id": 152404 "original_title": "Kung Fu Panda: Po's Winter Wonderland" "release_date": "2010-11-15" "poster_path": "/3gxajJRugsFObstuWZPakdlGr66.jpg" "popularity": 0.23 "title": "Kung Fu Panda: Po's Winter Wonderland" "vote_average": 5 "vote_count": 2 } "2": { "adult": "false" "backdrop_path": "/eyiE1vuizMKVu8MoZkg2xsramFl.jpg" "id": 49444 "original_title": "Kung Fu Panda 2" "release_date": "2011-05-25" "poster_path": "/fTztLcGmOe7BzPbJzRaHXdEI2WG.jpg" "popularity": 5.99808764571379 "title": "Kung Fu Panda 2" "vote_average": 6.4 "vote_count": 476 } "3": { "adult": "false" "backdrop_path": "/a14RyRGC3kz7YeQtvphuYMtou9v.jpg" "id": 50393 "original_title": "Kung Fu Panda Holiday" "release_date": "2010-11-26" "poster_path": "/gp18R42TbSUlw9VnXFqyecm52lq.jpg" "popularity": 1.92774344266228 "title": "Kung Fu Panda Holiday" "vote_average": 7.7 "vote_count": 5 } "4": { "adult": "false" "backdrop_path": "null" "id": 140300 "original_title": "Kung Fu Panda 3" "release_date": "2015-12-23" "poster_path": "null" "popularity": 0.9384 "title": "Kung Fu Panda 3" "vote_average": 0 "vote_count": 0 } "5": { "adult": "false" "backdrop_path": "/hrjeL2XpS5NeFc1hdmJ8DkCPdBM.jpg" "id": 81003 "original_title": "Kung Fu Panda: Secrets of the Masters" "release_date": "2011-12-12" "poster_path": "/lNMQQaU2UVYprlhuFocavx0ICCL.jpg" "popularity": 1.69357630174051 "title": "Kung Fu Panda: Secrets of the Masters" "vote_average": 5.6 "vote_count": 5 } "6": { "adult": "false" "backdrop_path": "/51xNCEVTIVNdq1q3p8y16je8DZT.jpg" "id": 15854 "original_title": "Kung Fu Panda: Secrets of the Furious Five" "release_date": "2008-11-08" "poster_path": "/1K82HieXcMZIQjaYel9cTyzsG9g.jpg" "popularity": 1.53370978896539 "title": "Kung Fu Panda: Secrets of the Furious Five" "vote_average": 7.1 "vote_count": 12 } } "total_pages": 1 "total_results": 8 }

Seems to be either a missing result, or an off-by-one in calculating total_results, I'm guessing that this is a bug somewhere along the line.

1 回复(第 1 页,共 1 页)

Jump to last post

This is being caused by some stale items in our Solr index. I've created a new ticket for this and will look at it when I get some time.

Cheers.

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

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区