Υποστήριξη για το The Movie Database

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 απαντήσεις(στη σελίδα 1 από 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!

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση