Assistance de TMDB

Hello, first of all i wanted to say that i really like this community and i appreciate how much effort everybody puts in to push this product forward :)

I have a question currently I am building an app to catalog my private DVD and series collection. I created a private list and started to put all the movies I own there. I'm currently at a point where I'm experiencing API problems. I have more than 500 movies in this list and the v3 API shuts down at 500 movies in the request. Is there a way to request more than 500 movies? So in the API call the data object says that there are more than 500 items but it spits out with only 500 :)

Furthermore, I would be interested if there is a possibility to search a in one of my lists via request like: …/find/list_id/movie_id or something? Then I could save myself the trouble of requesting 500 movies and go directly through the v4 API with the pager. But I have to be able to search in my list somehow.

Do you have an idea?

Looking forward to discuss that with you all grinning

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

Jump to last post

Hi @mmaihoff,

In order to get all of your list items, you'll have to use v4, like you pointed out. But, if all you're trying to do is check if a certain item is on your list, there actually is a method that you can use to do that. Check out the docs for v4's /item_status method. You pass it a media_type and media_id and the response will indicate if it's present or not. Would that work?

hey hey @travisbell, i know the fact that "item_status" responses the status of an movie item but that means if i use that on a global search that i need to request every single item twice. the first request gets me the movies by title and then i need to put the requested items id to send another request to get the item status this could be a bit overwhelming on a performance persepctive. Or is there another way to use the "…search/multi?…" enpoint to get both the item status and the results together?

if i request my list by using the "…4/list/list_id" endpoint i am not able to search in the whole list because the request is paged. And also to loop trough all pages and combine the results in an array is really inperformanced.

any ideas here? :)

Ok, so technically there is actually another "behind the scenes" param you can use, but it can only be used when you specify a custom sort order like popularity.desc. You can use with_text_query. Check it:

https://api.themoviedb.org/4/list/28?with_text_query=birdman&sort_by=popularity.desc

You'll see that only Birdman is returned in the results array. Does that help you?

Uhhhh great … i will check this out soon!!! Thanks a lot :)

@travisbell that works perfect for my needs! thank you blush

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