Soporte de The Movie Database

Wondering how to get the list of all episodes for a TV Show (or season of a TV Show). Also, it'd be super handy to be able to get the latest aired episode of a TV Show.

1 respuesta (en la página 1 de 1)

Jump to last post

Hi vernalkick,

Right now it would take you 2 queries unless you have internally been keeping track of the latest season (like in a local DB).

You would have to grab the series (which displays the list of seasons) and then you could peel off and do a second request for that last season (which returns a list of all episodes for that season). Calling the info for the last season (and grabbing the last aired episode based on air_date) returned in the series call would suit your needs 99% of the time.

There is an edge case here though, if someone adds a new season with some episodes left to air…

¿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