介绍
# Radarr
将电影添加到您的 Radarr 库,并支持合集。
## 设置
创建 `~/.clawdbot/credentials/radarr/config.json`: ```json { "url": "http://localhost:7878", "apiKey": "your-api-key", "defaultQualityProfile": 1 } ``` - `defaultQualityProfile`:画质配置 ID(运行 `config` 查看选项)
## 工作流
1. **搜索**:`search "电影名称"` - 返回编号列表 2. **展示带有 TMDB 链接的结果** - 始终显示可点击链接 3. **选择**:用户选择一个编号 4. **合集提示**:如果电影属于某个合集,询问用户 5. **添加**:添加电影或整个合集
## 重要事项 - 向用户展示搜索结果时,**必须包含 TMDB 链接** - 格式:`[标题 (年份)](https://themoviedb.org/movie/ID)` - 使用配置中的 `defaultQualityProfile`;每次添加时可覆盖
## 命令
### 搜索电影 ```bash bash scripts/radarr.sh search "Inception" ```
### 检查电影是否存在于库中 ```bash bash scripts/radarr.sh exists <tmdbId> ```
### 添加电影(默认立即搜索) ```bash bash scripts/radarr.sh add <tmdbId> # searches right away bash scripts/radarr.sh add <tmdbId> --no-search # don't search ```
### 添加完整合集(默认立即搜索) ```bash bash scripts/radarr.sh add-collection <collectionTmdbId> bash scripts/radarr.sh add-collection <collectionTmdbId> --no-search ```
### 移除电影 ```bash bash scripts/radarr.sh remove <tmdbId> # keep files bash scripts/radarr.sh remove <tmdbId> --delete-files # delete files too ``` **移除时务必询问用户是否删除文件!**
### 获取根文件夹与画质配置(用于配置) ```bash bash scripts/radarr.sh config ```