mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-04 06:38:05 +08:00
- webhook-on-event、custom-rss-site、template-rename、nfo-writer、ntfy-notifier - scripts/test_example_plugins.sh 对每个示例运行 ab-plugin validate 与自带测试 - 宿主侧测试把全部示例载入 PluginManager,断言 Provider 与钩子已登记 - NotifierContract 发现 ntfy 示例的中文标题请求头缺陷,已改用 bytes 请求头
599 B
599 B
自定义 RSS 站点(示例插件)
给搜索框加一个站点,并为该站点的请求附带 Cookie。演示:
@provider(points.SEARCH_SITE):返回SearchSite@hook(points.HTTP_REQUEST):transform 钩子,返回修改后的请求副本;返回None表示不修改- 契约套件
SearchSiteContract
安装
cp -r examples/plugins/custom-rss-site config/plugins/local/
在「设置 → 插件」中开启「允许未签名插件」,启用并填写搜索地址与 Cookie。
测试
cd examples/plugins/custom-rss-site && uv run pytest