名称: lidarr
版本: 1.0.0
描述: 为 Lidarr 搜索并添加音乐。支持艺术家、专辑和质量配置(优先 FLAC)。
元数据: {"openclaw":{"emoji":"🎵","requires":{"bins":["curl","jq"]}}}
向你的 Lidarr 音乐库中添加音乐(艺术家和专辑)。
创建 ~/.clawdbot/credentials/lidarr/config.json 文件:
{
"url": "http://192.168.1.50:8686",
"apiKey": "efbd6c29db184911a7b0f4707ae8f10f",
"defaultQualityProfile": 2,
"defaultMetadataProfile": 7
}
defaultQualityProfile: 质量配置 ID(如 FLAC、MP3 等 — 运行 config 命令查看选项)defaultMetadataProfile: 元数据配置 ID(如仅专辑、完整作品集等 — 运行 config 命令查看选项)通常推荐使用 FLAC:
- 无损 (FLAC)
- 24位无损 (FLAC 24-bit)
bash scripts/lidarr.sh search "艺术家名称"
返回带 MusicBrainz 链接的编号列表。
bash scripts/lidarr.sh exists <foreignArtistId>
bash scripts/lidarr.sh add <foreignArtistId>
如果艺术家已存在,此命令将改为监控该艺术家,而非报错。
选项:
- --discography — 添加完整作品集,而非仅专辑
- --no-search — 不立即开始搜索
bash scripts/lidarr.sh list-artist-albums <artistId>
显示所有专辑及其 ID 和监控状态。
bash scripts/lidarr.sh monitor-album <albumId>
监控并可选搜索特定专辑。
选项:
- --no-search — 仅监控,暂不搜索
bash scripts/lidarr.sh search "KMFDM"
bash scripts/lidarr.sh exists 45074d7c-5307-44a8-854f-ae072e1622ae
bash scripts/lidarr.sh add 45074d7c-5307-44a8-854f-ae072e1622ae
bash scripts/lidarr.sh add 45074d7c-5307-44a8-854f-ae072e1622ae --discography
bash scripts/lidarr.sh list-artist-albums 382
bash scripts/lidarr.sh monitor-album 11116
bash scripts/lidarr.sh list
bash scripts/lidarr.sh refresh <artistId>
bash scripts/lidarr.sh remove <artistId> # 保留文件
bash scripts/lidarr.sh remove <artistId> --delete-files # 同时删除文件
bash scripts/lidarr.sh config