Skip to content

[BUG] provider 搜索参数组合问题 #1763

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Alen-QK opened this issue May 12, 2025 · 3 comments
Open

[BUG] provider 搜索参数组合问题 #1763

Alen-QK opened this issue May 12, 2025 · 3 comments
Labels
bug Something isn't working server Server related

Comments

@Alen-QK
Copy link

Alen-QK commented May 12, 2025

描述

fetchResources方法的query参数中,provider目前只能和keywords组合(单独)返回正确结果。

如果添加include,或者与search组合,就会返回空搜索结果。

使用版本:0.5.1

Image

Image

Image

复现链接

  1. 安装0.5.1版本npm包
  2. 引入fetchResources方法
  3. 使用以下query参数组合进行测试
const query = {
  // include: ['喵萌奶茶屋'],
  search: ['水星的魔女'],
  provider: 'dmhy',
  // keywords: ['间谍过家家'],
  // type: '合集',
  // fansubs: ['喵萌奶茶屋'],
};

浏览器信息

@Alen-QK Alen-QK added the bug Something isn't working label May 12, 2025
@yjl9903
Copy link
Owner

yjl9903 commented May 12, 2025

晚上更新下文档,https://animespace.onekuma.cn/animegarden/search.html#%E6%A0%87%E9%A2%98%E5%8C%B9%E9%85%8D

有几个搜索条件不太能共存

如果指定了 search 那么和其他搜索条件不共存

@yjl9903
Copy link
Owner

yjl9903 commented May 12, 2025

指定了 provider 的过滤有点问题,没测过,写的有点伪人

d9f5c39

@yjl9903
Copy link
Owner

yjl9903 commented May 12, 2025

已发布

@yjl9903 yjl9903 changed the title [BUG] AnimeGarden - npm封装客户端provider搜索参数组合问题 [BUG] provider 搜索参数组合问题 May 12, 2025
@yjl9903 yjl9903 added the server Server related label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Server related
Projects
None yet
Development

No branches or pull requests

2 participants