feat(sites): 内置公开 BT 站 Nyaa / 蜜柑 / AniBT / AnimeGarden / 萌番组

- 新专用解析器(spiders/public.ts):RSS / Torznab / JSON API,搜索 + 最新列表 + 按资源 ID 取种子或磁力
- 手写定义(definitions/public.ts,public: true),并入内置定义表;定义视图按 public 标为 public_bt
- 添加站点:公开 BT 站可从内置站一键添加(专用适配器、默认定时抓取、默认不进搜索集合),手填 RSS 保留
- 样例取自 2026-10-02 公开接口,截前两条

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-02 21:19:19 +08:00
1 parent 9cdf492291
commit b8876542b8
16 files changed
+770 -18

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ export const SITE_KINDS: Record<SiteKind, SiteKindSpec> = {
},
public_bt: {
label: "公开 BT 站",
description: "不用登录的公开站。填网址和 RSS 地址,按 RSS 获取资源",
description: "不用登录的公开站。内置 Nyaa、蜜柑、AniBT、AnimeGarden、萌番组,其他站填网址和 RSS 地址",
capabilities: ["search", "list", "rss", "detail"],
implemented: true,
fromDefinition: false,
@@ -710,7 +710,7 @@ export type SiteRequestStats = z.infer<typeof SiteRequestStats>;
export const SiteDefinitionView = z.object({
key: z.string(),
name: z.string(),
/** 定义对应的站点类型(现有定义都是 PT 站) */
/** 定义对应的站点类型(PT 站;Nyaa、蜜柑等内置公开 BT 站为 public_bt) */
kind: SiteKind,
adapter: SiteAdapter,
baseUrl: z.string(),