Axuda de 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 respostas (na páxina 1 de 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! :)

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión