Soporte de The Movie Database

Hi guys,

in my application, I'm aiming to make the collection of movies with the total number of elements specified at the same beginning. It would mean that I need a reliable "total_results" field and paging requests.

However, I find the paging responses very unstable.

Let's check out an example of the "https://api.themoviedb.org/3/movie/now_playing?page=1&language=en"

Performing the same request one after another gives us the responses like:

"total_results":687,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":699,"dates":{"maximum":"2017-07-13","minimum":"2017-06-01"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":686,"dates":{"maximum":"2017-07-19","minimum":"2017-06-07"},"total_pages":35}
"total_results":693,"dates":{"maximum":"2017-07-14","minimum":"2017-06-02"},"total_pages":35}
"total_results":693,"dates":{"maximum":"2017-07-14","minimum":"2017-06-02"},"total_pages":35}

Basically, a problem lies in a range of dates. It cannot be specified in the request and it's not deterministic which ones are picked.

The problem that rises here is that I cannot rely on the "total_results" received in the page=1 request in order to prepare a whole collection. Moreover, I also need to filter out the results to have them all unique (e.g. it always happen to me that after going through all the 35 pages, I need to filter out dozens of movies because they were actually fetched in one of the previous pages).

My desired result would be to have a deterministic "total_results" field and all results unique (I think this one would be achieved implicitly if I would have all the page responses with the same minimum and maximum date) :)

Is it a known issue or maybe I'm missing anything here? :)

Great thanks for your help!

Best regards

3 respuestas (en la página 1 de 1)

Jump to last post

Yes, the flip flopping dates is a known bug. I haven't found time to fix it yet but it's on my radar.

Sure, thanks for the quick response. I'll greatly appreciate a fix for this issue ;) I'll handle it on the frontend side for now.

I believe this is still not fixed. And not sure what the workaround could be. At any given time there will be duplicated and missing movies, when they are swapped between pages, but one of the pages returns the cached version. The only solution I can imagine is the coordinated update of the pages. Or is there anything else I could do?

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión