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

In the API Call for Now Playing, is there a way to append a parameter to the call that only loads original_language: "en" ... So far my call looks like this:

https://api.themoviedb.org/3/movie/now_playing?api_key=HIDDEN&language=en-US&region=US&page=1

but it still loads movies that have original languages like "ja" ?

7 απαντήσεις(στη σελίδα 1 από 1)

Jump to last post

Hi there,

There is no filter that yo can add to /now_playing but, now playing is just a discover query behind the scenes so you can definitely create your own custom query with discover. You can check out the docs for discover here. Discover of course supports the with_original_language filter.

So if I am trying to load a list of "Now Playing" list of movies in theaters and only wish to display the U.S. movies with original language en , does it make more sense to make that call through "Now Playing" or through "Discover"

I would do it through discover. Something like this:

http://api.themoviedb.org/3/discover/movie?api_key=###&release_date.gte=2018-08-01&release_date.lte=2018-08-24&region=US&with_release_type=3|2&with_original_language=en

  1. release_date.gte: Only include movies released since and including Aug. 1
  2. release_date.lte: Only include movies released before and including today (Aug. 24)
  3. region: US
  4. with_release_type: Theatrical OR limited theatrical release dates, but prefer theatrical (3 is first)
  5. with_original_language: Only include movies marked with primary language of English

I guess the tricky part is finding a way to update the date field automatically... Since the Now Playing API auto updates , and I am trying to make a discover call function as a Now Playing call, then that means I have to figure out how to update the release_date.gte and the release_date.lte fields automatically within the call. Is this a correct assumption ? If it is, then, out of curiosity, since you said the Now Playing call is really just a discover call behind the scenes, what logic did you use for the the release_date.gte and the release_date.lte date fields, are using a span of movies released within 4 weeks of "today" or something like that?

If it is, then, out of curiosity, since you said the Now Playing call is really just a discover call behind the scenes, what logic did you use for the the release_date.gte and the release_date.lte date fields, are using a span of movies released within 4 weeks of "today" or something like that?

Correct. I base my (6 week span I think) starting on Wednesdays and choose the proper weeks from there.

I was going to add a filter to only include movies that are greater than 50 minutes runtime so I can remove some unpopular movies that have 0hr/0min from showing... but then I noticed a popular movie ("Kin") was missing when I did this. Why do some movies show 0 hours and 0 minutes, even though they have that information public already? For example the Movie "Kin" (https://www.themoviedb.org/movie/425505-kin) shows 0/0 in the object but if I google it to check online it shows 1Hr 42Min.

Why do some movies show 0 hours and 0 minutes, even though they have that information public already?

TMDb is a crowd sourced database so there will be times when no one has entered the data yet. In this case, the runtime for Kin has not been added. You can head in and add a runtime if you wish.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Ρυθμίσεις

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

Σύνδεση