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.
Não consegue encontrar um certo filme ou série? Inicie sessão e adicione-o.
Deseja classificar ou adicionar este item a uma lista?
Ainda não é um membro?
Resposta de Travis Bell
em 29 janeiro 2014 às 7:40 PM
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.
Resposta de Jack Wright
em 30 janeiro 2014 às 1:08 PM
Them TV episode IDs won't necessarily be unique across different TV series?
Resposta de Travis Bell
em 30 janeiro 2014 às 2:50 PM
All TV show, season and episode ids are unique per collection. So yes, they're all unique.
Resposta de Jack Wright
em 31 janeiro 2014 às 8:32 AM
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.
Resposta de Travis Bell
em 31 janeiro 2014 às 12:05 PM
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.
Resposta de SGMcejo
em 17 janeiro 2018 às 3:00 PM
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.
Resposta de Travis Bell
em 21 janeiro 2018 às 12:26 PM
@SGMcejo Unfortunately, no. The only way in is with the series id and season number.
Resposta de Webstractions
em 28 março 2018 às 8:00 PM
Is it possible to consider adding
tv/episode/:id
andtv/season/:id
routes to query by episode/season ID numbers?Resposta de Travis Bell
em 31 março 2018 às 11:30 AM
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...
Resposta de Webstractions
em 31 março 2018 às 6:19 PM
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.