The Movie Database Support

I don't see any id explicitly saying whether a listing is a movie or a tv show but there are some differences for example movies use release_date and tv uses first_air_date. Can I rely on this being true throughout the database and use this as a way to filter what is a movie and what is a tv show? Or is there an easier way that I'm missing?

2 replies (on page 1 of 1)

Jump to last post

Hi @jgreen, if the result came from a multi search or a find request (or anything else with mixed media types eg. trending) it will have a media_type field delivered as part of the object. Otherwise, you will know it's a movie or TV based on how you retrieved it (ie. a movie search, or a TV discover).

Hey Travis appreciate the help.

I'm dealing with a dynamic page that could potentially be passed results from multiple requests (trending/all list, popular tv, popular movie) and rather than going through the request process again I'd like to filter the results that have already been fetched (and don't have a media_type) and use the id data from those results for another fetch like get videos to grab a trailer for whatever show was clicked on which requires a different request link depending on if it's a movie or tv show.

I can filter those results from properties release_date and first_air_date which the former seems to only be used for movies and the latter for tv shows but not sure how reliable that would be long term.

Good to know that multi search has the media_type property.

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