The Movie Database 支持

Hi, I'm trying to make a call to the search movie API and is returning the first page ignoring the page option:

Example:

http://api.themoviedb.org/3/search/movie?api_key=api-key&query=fight&page=2

{"page":1,"results":[{"adult":false,"backdrop_path":"/ji3ArKisslmeNvGSYBBx2NGNPDy.jpg","id":29044,"original_title":"Street Fight","release_date":"2005-01- [....] Fight","video":false,"vote_average":0.0,"vote_count":0}],"total_pages":38,"total_results":745}

Do you know if this is a bug or if i'm making something wrong?

Thanks!

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

Jump to last post

Hi cavestri,

The results seem to be working ok for me but the page field isn't updating, you're correct. Here's the first 2 pages, with the results truncated to only first 2 items each:

https://api.themoviedb.org/3/search/movie?api_key=###&query=fight
{
  "page": 1,
  "results": [
    {
      "adult": false,
      "backdrop_path": "/8uO0gUM8aNqYLs1OsTBQiXu0fEv.jpg",
      "id": 550,
      "original_title": "Fight Club",
      "release_date": "1999-10-14",
      "poster_path": "/2lECpi35Hnbpa4y46JX0aY3AWTy.jpg",
      "popularity": 2.9870890916466,
      "title": "Fight Club",
      "video": false,
      "vote_average": 7.8,
      "vote_count": 3298
    },
    {
      "adult": false,
      "backdrop_path": null,
      "id": 158301,
      "original_title": "Kavgamız",
      "release_date": "1989-01-01",
      "poster_path": null,
      "popularity": 4.24915565306238E-52,
      "title": "Fight",
      "video": false,
      "vote_average": 0.0,
      "vote_count": 0
    },
    ...
  ],
  "total_pages": 38,
  "total_results": 744
}
https://api.themoviedb.org/3/search/movie?api_key=###&query=fight&page=2
{
  "page": 1,
  "results": [
    {
      "adult": false,
      "backdrop_path": "/ji3ArKisslmeNvGSYBBx2NGNPDy.jpg",
      "id": 29044,
      "original_title": "Street Fight",
      "release_date": "2005-01-01",
      "poster_path": "/1KnCo9CZQ6004ANSemFNd5mVuqr.jpg",
      "popularity": 0.000642899206018665,
      "title": "Street Fight",
      "video": false,
      "vote_average": 5.0,
      "vote_count": 3
    },
    {
      "adult": false,
      "backdrop_path": null,
      "id": 163362,
      "original_title": "Kampen mod kræften",
      "release_date": "1947-09-23",
      "poster_path": "/4A2eGBlwQUvrLbUZf8Nh8PxRttG.jpg",
      "popularity": 0.000142857153853075,
      "title": "The Fight Against Cancer",
      "video": false,
      "vote_average": 0.0,
      "vote_count": 0
    },
    ...
  ],
  "total_pages": 38,
  "total_results": 745
}

I've created a new ticket for this here and will take a look at it tomorrow.

Thanks.

Hi cavestri,

I just deployed the fix for this, you'll have to wait ~6 hours for the cached pages to expire but it will start showing the proper page numbers shortly.

Cheers.

Great, thanks for your support! :)

找不到电影或剧集?登录并创建它吧。

全站通用

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

在媒体页面

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

在电视季页面

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

在电视集页面

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

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

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

在讨论页面

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

设置

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

登录

还不是会员?

注册加入社区