Sprijin Bază de date filme (The Movie Database)

Hi :)

I'm trying to combine keywords using the comma/pipe operators. What I need to do is find movies that ALWAYS have one keyword (in my case '163053' which is the code for 'Found Footage') but then also have a few more. e.g. Found Footage movies about Aliens - but sadly, people apply keywords a bit haphazardly so some FF movies are tagged 'Alien' (code 9951) whilst some might be tagged 'UFO' instead (code 9738).

So I've tried three ways:

https://api.themoviedb.org/3/discover/movie?api_key=<MY-API-KEY>&with_keywords=163053,9951,9738&sort_by=release_date.asc&page=1

But that only gives me movies that are Found Footage AND Alien AND UFO - in other words, if they're not keyword tagged with all 3 of those keywords I get nothing. Then I tried:

https://api.themoviedb.org/3/discover/movie?api_key=<MY-API-KEY>&with_keywords=163053,9951|9738&sort_by=release_date.asc&page=1

But that gives me Found Footage movies also tagged Alien and also movies tagged UFO (not necessarily Found Footage though). So then I tried;

https://api.themoviedb.org/3/discover/movie?api_key=<MY-API-KEY>&with_keywords=163053,9951|163053,9738&sort_by=release_date.asc&page=1

Which is better...but it still seems to be missing movies.

Am I on the right track here? Is what I'm trying even possible? Or am I missing something obvious?

1 răspuns (pe pagină 1 din 1)

Jump to last post

@netnegative said:
Combing keywords with Discover...
Hi :)
I'm trying to combine keywords using the comma/pipe operators.
...
Am I on the right track here? Is what I'm trying even possible? Or am I missing something obvious?

I'm not sure, but I believe that it is not possible to use both resources, AND and OR, simultaneously.
There are plans to add some similar features to your order.
https://trello.com/c/mgWoRG5K/17-add-advanced-discover-filters
It might be better to add your suggestion in a comment on the Trello thread.
It would be something like: &with_keywords=163053 and (9951 or 9738 or ...)

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