Assistance de TMDB

I've been using the API for the last couple of weeks and it's fantastic, a lot to play with.

I am having a little bit of a trouble calling Upcoming movies in USA.

i'm running https://api.themoviedb.org/3/movie/upcoming?api_key=###&language=en-US&region=US

Sometimes i get 1 page and 17 counts and the very next call brings 2 pages and 27 counts.

Anything you guys can do to let me know if i'm missing something?

Thanks again.

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

Jump to last post

Hi @alexguz79,

Yes, this is a known issue. If you look at the dates being returned, they will flip back and forth between two date ranges which is what is causing the different pagination data. This is on my list to fix.

Thanks for the response Travis.

Great Help.

FYI, I've been playing with trying to get this bug fixed and it's been a tricky one to track down. I am not currently, seeing it but can you tell me if you do?

Thanks Travis

i had to create a workaround back in December and it's working for me.

Here's what i did:

First thing i do is truncate the table with coming_soon ids, then I run the query 3 times https://api.themoviedb.org/3/movie/upcoming?api_key=###&language=en-US&region=US ( since i noticed one of those queries will have the total count ), store each id when id is not already in DB and finally use those ids to display the info on each one.

It takes a little longer but was the best solution at the moment.

I'll re visit my code and see if the issue persist, in any case i will update.

Thanks again.

Ya, some work has been done to try and make sure the same data range is always returned. Like I mentioned, it's been annoying to fix because it never did happen on my dev environment, only ever production (for reasons I don't understand).

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