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 回复(第 1 页,共 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 ...)

找不到电影或剧集?登录并创建它吧。

全站通用

s 聚焦到搜索栏
p 打开个人资料菜单
esc 关闭打开的窗口
? 打开键盘快捷键窗口

在媒体页面

b 返回(或返回上级)
e 进入编辑页面

在电视季页面

(右箭头)下一季
(左箭头)前一季

在电视集页面

(右箭头)下一集
(左箭头)前一集

在所有图像页面

a 打开添加图片窗口

在所有编辑页面

t 打开翻译选择器
ctrl+ s 提交

在讨论页面

n 创建新讨论
w 切换关注状态
p 设为公开 / 私密讨论
c 关闭 / 开放讨论
a 打开活动页
r 回复讨论
l 跳转至最新回复
ctrl+ enter 发送信息
(右箭头)下一页
(左箭头)前一页

设置

想给这个条目评分或将其添加到片单中?

登录

还不是会员?

注册加入社区