Suporte do The Movie Database

Hi,

When getting Season details and episode details, and id is also returned as part of the parameters. However, there is no API that uses those ids, since seasons and episodes are accessed with the show's id + season/episodes numbers.

I wanted to know what are those ids stand for, and more importantly, are they unique TMDB ids? meaning that there can be no conflict between the movie id and season id (for example).

Thanks.

10 respostas (na página 1 de 1)

Jump to last post

Hi elazerspam@yahoo.com,

These ids will be used for the change log system once it's in place for TV shows. Similar to the way it works with movies, the way we bind changes to an item is with the id. A simple example would be if someone deleted an episode but then replaced it, you would have a way of knowing this was a new object.

They are unique per collection, just like they are with movies and people so unique within each group of TV shows, seasons and episodes.

Them TV episode IDs won't necessarily be unique across different TV series?

All TV show, season and episode ids are unique per collection. So yes, they're all unique.

Can you clarify what you mean by "collection"? It sounds like it's possible that a tv episode id may conflict with a movie id. I was thinking that each episode was treated like a movie, having a unique id that wouldn't conflict with any other tv episode or movie. But it sounds like you're saying I need to qualify each tv episode id with its series and season.

When I say collection, I mean each media type so, movies, people, TV series, seasons and episodes.

Ids are only unique within each group. Id 55 can exist in each one, they are not globally unique.

Is there a way to access the season directly via id? I find it quite uncomfortable to store the parent media id (series) of a season alongside with it when i want to access a season directly.

@SGMcejo Unfortunately, no. The only way in is with the series id and season number.

Is it possible to consider adding tv/episode/:id and tv/season/:id routes to query by episode/season ID numbers?

Hi @Webstractions,

Perhaps, but the main problem with this idea is that when episodes get deleted you're still going to need a way to fetch the new ID. As opposed to with the current method where I can guarantee the data being available the season/episode namespaced key.

Something to thin about anyways...

Guess that would depend on how often an episode gets deleted. One of those six of one, half-dozen of another type of things.

My reasoning behind having an episode query is how simplistic client apps can be for tracking watched episodes, for example, by using localStorage. I suppose, this can still be handled with a nested array too.

Thanks for at least considering it.

Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.

Geral

s focus the search bar
p abrir menu do perfil
esc close an open window
? open keyboard shortcut window

Em páginas de Média

b go back (or to parent when applicable)
e ir para a página de edição

Em páginas de temporadas de séries

(seta para a direita) ir para a próxima temporada
(seta para a esquerda) ir para a temporada anterior

Em Páginas de Episódios de Séries

(seta para a direita) ir para o próximo episódio
(seta para a esquerda) ir para o episódio anterior

Em Todas as Páginas de Imagens

a abrir janela para adicionar imagem

Em Todas as Páginas de Edição

t open translation selector
ctrl+ s submit form

Em Páginas de Discussão

n criar uma nova discussão
w toggle watching status
p toggle public/private
c toggle close/open
a abrir actividade
r reply to discussion
l ir para a última resposta
ctrl+ enter submit your message
(seta para a direita) página seguinte
(seta para a esquerda) página anterior

Definições

Deseja classificar ou adicionar este item a uma lista?

Iniciar Sessão

Ainda não é um membro?

Crie uma Conta e Adere a Comunidade