Files
Estrella Pan 124b156b7a fix: 修复 4.0 工具链升级审查问题
- ab-plugin new 与示例插件的 requires-python 改为 >=3.14,与 SDK 0.6.0 一致
- 示例插件 ntfy-notifier / webhook-on-event 改用 httpx2
- openai / anthropic / google-genai 下限改为实际需要的大版本
- 插件 MCP 工具的 input_schema 无效时计入熔断
- 复制 RSS 链接在 HTTP 部署下回退到 execCommand(useClipboard legacy)
- CI 步骤名、PLAYWRIGHT_VERSION、README 徽章与 e2e 指南改为 Python 3.14 / Playwright 1.64.1
2026-10-20 12:12:58 +02:00
..
…

NFO 写入(示例插件)

种子整理完成后,在每个正片旁写一个 Kodi / Jellyfin 格式的 .nfo(只含剧名、季、集)。演示:

  • @subscribe(TorrentOrganized.kind):事件为「至少一次」投递,插件自己保证幂等(.nfo 已存在就跳过)
  • 事件里的路径是下载器视角,用 path_from / path_to 换成本地路径
  • 文件操作放进 asyncio.to_thread,不阻塞事件循环

刷新媒体库不需要写插件:内置插件 media-server-refresh 已经支持 Jellyfin / Emby / Plex。

安装

cp -r examples/plugins/nfo-writer config/plugins/local/

在「设置 → 插件」中开启「允许未签名插件」并启用。

测试

cd examples/plugins/nfo-writer && uv run pytest