Suport 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 resposta (a les pàgines 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! :)

No trobeu una pel·lícula o una sèrie? Inicieu la sessió per a crear-la.

Global

s centra la barra de cerca
p obre el menú del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les pàgines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la pàgina d'edició

A les pàgines de temporades

(fletxa dreta) ves a la temporada següent
(fletxa esquerra) ves a la temporada anterior

A les pàgines d'episodis

(fletxa dreta) ves a l'episodi següent
(fletxa esquerra) ves a l'episodi anterior

A totes les pàgines d'imatges

a obre la finestra d'afegir imatges

A totes les pàgines d'edició

t obre el selector de traducció
ctrl+ s envia el formulari

A les pàgines de debat

n crea un debat nou
w canvia l'estat de visualització
p canvia públic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) pàgina següent
(fletxa esquerra) pàgina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessió