The Movie Database Support

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 replies (on page 1 of 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.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login