Sprijin Bază de date filme (The Movie Database)

I am trying to create a film search portal through the API. The issue I am having is I am receiving results that include collections even though I am using the movies search endpoint. Any easy way to exclude collections?

3 răspunsuri (pe pagină 1 din 1)

Jump to last post

@nmotamedi said:
Search movies and block collections
I am trying to create a film search portal through the API.
The issue I am having is I am receiving results that include collections even though I am using the movies search endpoint.
Any easy way to exclude collections?

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

await fetch( https://api.themoviedb.org/3/search/movie?query=polar%20express&include_adult=false&language=en-US&page=1, {headers: { Authorization: Bearer <TMDB_TOKEN>, }}, );

When I make this request, I receive the Polar Express Collection as a result as well, which it causing some issues when displaying those details since the TMDbID for the collection won't work when populating detail results.

@nmotamedi said:

await fetch(
https://api.themoviedb.org/3/search/movie?query=polar%20express&include_adult=false&language=en-US&page=1,
{headers: {
Authorization: Bearer <TMDB_TOKEN>,
}},
);

When I make this request, I receive the Polar Express Collection as a result as well, which it causing some issues when displaying those details since the TMDbID for the collection won't work when populating detail results.

Hummm
I believe it is not possible to filter/eliminate the collection in the response.
Movies and collections are in the same DB.
Maybe Travis Bell, the admin, has a solution for this.
Let's wait for him to come by.

Nu găsiți un film sau un serial? Autentificați-vă pentru a-l crea.

Global

s focalizați bara de căutare
p deschideți meniul profilului
esc închide o fereastră deschisă
? deschideți fereastra de scurtături de la tastatură

Pe paginile media

b înapoi (sau la pornire atunci când este cazul)
e accesați pagina de editare

Pe paginile sezonului TV

(săgeată dreapta) mergeți la sezonul următor
(săgeată stânga) mergeți la sezonul precedent

Pe paginile episoadelor TV

(săgeată dreapta) mergeți la următorul episod
(săgeată stânga) mergeți la episodul anterior

Pe toate paginile de imagini

a deschideți fereastra pentru adăugarea imaginii

Pe toate paginile de editare

t deschide selectorul de traduceri
ctrl+ s trimiteți formularul

Pe paginile de discuții

n creați o nouă discuție
w comutați stare de vizionare
p comutați public/privat
c comutați închidere/deschidere
a deschide activitatea
r răspuns la discuție
l mergeți la ultimul răspuns
ctrl+ enter trimiteți mesajul
(săgeată dreapta) pagina următoare
(săgeată stânga) pagina anterioară

Setări

Doriți să evaluați sau să adăugați acest element într-o listă?

Autentificare