关于 aitorrent
AITorrent Skill 通过命令行工具协助处理 Plex、qBittorrent 和 TMDB 媒体管理任务。它涵盖节目查询、种子添加和 Plex 媒体库检查,工具通过 uvx 运行。
主要功能
- 01查询 Plex 媒体库内容
- 02搜索 TMDB 节目
- 03查看节目与季信息
- 04列出并筛选种子
- 05添加种子或 RSS 规则
适用场景
- 01查找节目及其集数信息
- 02将种子添加到 qBittorrent
- 03按状态查看下载任务
- 04确认 Plex 媒体库内容
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ konsumer/ aitorrent --skill aitorrent安装后在 Claude Code 中输入/aitorrent确认已加载。
包含的文件
除 SKILL.md 外,安装时一起下载的参考资料和脚本。
.env.exampleLICENSEDEVELOPER.mdplexinfo.py.gitignoretmdbinfo.pyrequirements.txtREADME.mdqbtinfo.pyMANIFEST.inpyproject.toml.github/workflows/publish.yml详细介绍
AITorrent 技能
在处理涉及 Plex、qBittorrent 或 TMDB 的媒体管理任务时使用此技能。所有工具均通过 uvx 运行,无需安装。
前提条件
无需任何前提条件——uvx 会处理一切。在这些环境变量中配置凭据:
PLEX_URL=http://localhost:32400
PLEX_TOKEN=your_plex_token
TMDB_API_KEY=your_tmdb_api_key
QBT_URL=http://localhost:8080
QBT_USERNAME=admin
QBT_PASSWORD=adminadmin
可用工具
Plex 命令行工具
# List all library names
uvx --from aitorrent aitorrent-plex-cli list
# List all shows in "TV Shows" library
uvx --from aitorrent aitorrent-plex-cli list "TV Shows"
# List all movies in "Movies" library
uvx --from aitorrent aitorrent-plex-cli list "Movies"
# Show what's currently watching
uvx --from aitorrent aitorrent-plex-cli watching
TMDB 命令行工具
# Search for a TV show
uvx --from aitorrent aitorrent-tmdb-cli search-shows "Star Trek Lower Decks"
# Get show details (use the tmdb_id from search)
uvx --from aitorrent aitorrent-tmdb-cli show-details 85948
# Get season details
uvx --from aitorrent aitorrent-tmdb-cli season-details 85948 1
# Search for a movie
uvx --from aitorrent aitorrent-tmdb-cli search-movies "The Matrix"
# Get movie details
uvx --from aitorrent aitorrent-tmdb-cli movie-details 603
qBittorrent 命令行工具
# List all torrents
uvx --from aitorrent aitorrent-qbt-cli list
# List downloading torrents only
uvx --from aitorrent aitorrent-qbt-cli list downloading
# Add a torrent
uvx --from aitorrent aitorrent-qbt-cli add "magnet:?xt=urn:btih:..." --path "/downloads" --category "TV Shows"
# List RSS feeds
uvx --from aitorrent aitorrent-qbt-cli rss list-feeds
# Add RSS feed
uvx --from aitorrent aitorrent-qbt-cli rss add-feed "https://example.com/feed.rss" --folder "TV Shows"
# Add RSS rule for a show
uvx --from aitorrent aitorrent-qbt-cli rss add-show "Star Trek Lower Decks" --season 3 --quality "1080p" --category "TV Shows"
常见工作流
- 查找要添加的剧集:使用 TMDB 命令行工具搜索剧集,并获取其详情以查找剧集信息
- 添加到 qBittorrent:使用 qBittorrent 命令行工具添加种子或 RSS 规则
- 检查 Plex:使用 Plex 命令行工具验证媒体库并查看正在观看的内容
环境变量
| 变量 | 描述 |
|---|---|
PLEX_URL | Plex 服务 URL(例如,http://localhost:32400) |
PLEX_TOKEN | Plex 身份验证令牌 |
TMDB_API_KEY | The Movie Database API 密钥 |
QBT_URL | qBittorrent Web UI URL |
QBT_USERNAME | qBittorrent 用户名 |
QBT_PASSWORD | qBittorrent 密码 |
评论
支持 Markdown