Assistance de TMDB

https://api.themoviedb.org/3/discover/movie?api_key=[APIKeyHere]&language=en&sort_by=release_date.asc&release_date.gte=2014-08-21&page=1&release_date.lte=2014-11-21

I wanted getUpcoming movies to return me them inorder by date. That call doesn't do that so I now trying the getDiscover call which seems to be what I want. I'm issuing the call above and it starts returning results from 2001. Maybe I don't understand something. Help

Thanks

3 réponses (sur la page 1 sur 1)

Jump to last post

You can read about why this is here.

Cheers.

I've looked at the thread and I'm still having issues getting the information I need. My end goal is to get up coming movies for the US. Currently using getUpcoming returns them in a random date order. So my first request is to order them by date just like top rated is ordered by rated. If that can't be done I started using the discover method. I've tried :

https://api.themoviedb.org/3/discover/movie?certification_country=US&api_key=[KEY]&language=en&certification.lte=R&sort_by=release_date.asc&release_date.gte=2014-08-23&page=1&release_date.lte=2014-11-23

And I still get movies that are bring released in other countries when they where released in the US along time ago. I know that adding primary_release_year helps but I'm looking for a range of movies and specifying the year doesn't seem right. What happens when that range over laps into the next year. Seems like i need a use_primary_release as a bool. Remember I really just want the upcoming movies.

What do you think is the best way to achieve my goal?

Thanks

Hey Joe,

The ?sort_by=release_date.asc is actually sorting by the primary release date. Since we don’t support searching or filtering by country and release date pairs, this is why you’ll be getting sporadic results like you are.

There’s kind of 2 things that needs to happen in order to fix this, this ticket here relating to multiple release dates and types, and then this one here moving to support legitimate per country filtering.

The first ticket will at least allow us to be able to specifically see only what’s actually in theatres, which is most of the problem here since there’s no designation for that in our DB right now.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion