Soporte de The Movie Database

Hi Travis,

I was wondering how difficult it would be for the discover endpoints for Movies and TV to return array[object] for Genres, similar to the details endpoints? Currently, array[integer] is returned in the genre_ids field. Returning the Genre objects themselves would be a huge help to many of us, and means we wouldn't have to make a separate call to the genre/{media}/list endpoints and do internal mapping ourselves.

Is there a reason this is not done currently?

Cheers!

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

Jump to last post

If I could do it again, I'd actually do it in reverse (make everything follow the ID way). I don't like to have to do full translated object lookups for so many items all the time, when it's so easy to implement that logic client side.

Best thing to do is just cache the data for some amount of time (like a week or something) and then you can build a map locally.

Appreciate the quick response, and I can understand your reasoning.

For my own use case (an Android app), I wanted to include the Genres for Movies/Shows in the list returned from the discover response. Unfortunately, trying to do that just goes against too many best practices and standards for it to be worth it. Seeing as the details response returns the Genre names themselves, local mapping would only be used for a single section of the app, and never again.

Again, I appreciate your approach and would agree that doing things in the reverse would end up being better overall. Thanks for all the work you 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 discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
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