介绍
# Sonarr
将电视剧添加到您的 Sonarr 库中。
## 设置
创建 `~/.clawdbot/credentials/sonarr/config.json`: ```json { "url": "http://localhost:8989", "apiKey": "your-api-key", "defaultQualityProfile": 1 } ``` - `defaultQualityProfile`:画质配置 ID(运行 `config` 查看选项)
## 工作流程
1. **搜索**:`search "Show Name"` - 返回编号列表 2. **显示结果及 TVDB 链接** - 始终显示可点击链接 3. **核对**:用户选择一个编号 4. **添加**:添加电视剧并开始搜索
## 注意事项 - 向用户显示搜索结果时,**务必包含 TVDB 链接** - 格式:`[Title (Year)](https://thetvdb.com/series/SLUG)` - 使用配置中的 `defaultQualityProfile`;可在每次添加时覆盖
## 命令
### 搜索电视剧 ```bash bash scripts/sonarr.sh search "Breaking Bad" ```
### 检查电视剧是否已存在于库中 ```bash bash scripts/sonarr.sh exists <tvdbId> ```
### 添加电视剧(默认立即搜索) ```bash bash scripts/sonarr.sh add <tvdbId> # searches right away bash scripts/sonarr.sh add <tvdbId> --no-search # don't search ```
### 删除电视剧 ```bash bash scripts/sonarr.sh remove <tvdbId> # keep files bash scripts/sonarr.sh remove <tvdbId> --delete-files # delete files too ``` **删除时务必询问用户是否要删除文件!**
### 获取根文件夹和画质配置(用于配置) ```bash bash scripts/sonarr.sh config ```