The Movie Database support

Hi Travis,

I was wondering how difficult it would be for the discover endpoints for Movies and TV to return array[object] for Genres, similar to the details endpoints? Currently, array[integer] is returned in the genre_ids field. Returning the Genre objects themselves would be a huge help to many of us, and means we wouldn't have to make a separate call to the genre/{media}/list endpoints and do internal mapping ourselves.

Is there a reason this is not done currently?

Cheers!

2 svar (på side 1 af 1)

Jump to last post

If I could do it again, I'd actually do it in reverse (make everything follow the ID way). I don't like to have to do full translated object lookups for so many items all the time, when it's so easy to implement that logic client side.

Best thing to do is just cache the data for some amount of time (like a week or something) and then you can build a map locally.

Appreciate the quick response, and I can understand your reasoning.

For my own use case (an Android app), I wanted to include the Genres for Movies/Shows in the list returned from the discover response. Unfortunately, trying to do that just goes against too many best practices and standards for it to be worth it. Seeing as the details response returns the Genre names themselves, local mapping would only be used for a single section of the app, and never again.

Again, I appreciate your approach and would agree that doing things in the reverse would end up being better overall. Thanks for all the work you do!

Kan du ikke finde en film eller TV-serie? Log in og opret den.

Global

s focus the search bar
p open profile menu
esc luk et åbent vindue
? open keyboard shortcut window

På mediesider

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

På alle billedesider

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

På diskussionssider

n opret ny diskussion
w toggle watching status
p toggle public/private
c toggle close/open
a åben aktivitet
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Indstillinger

Want to rate or add this item to a list?

Log ind