Lidarr
Add music (artists and albums) to your Lidarr library.
Setup
Create ~/.clawdbot/credentials/lidarr/config.json:
CODEBLOCK0
- -
defaultQualityProfile: Quality profile ID (FLAC, MP3, etc. — run config to see options) - INLINECODE3 : Metadata profile ID (albums only, discography, etc. — run
config to see options)
Quality Profiles
Typically you'll want FLAC:
- - Lossless (FLAC)
- Lossless 24bit (FLAC 24-bit)
Metadata Profiles
- - Albums only (recommended) — just studio albums
- Standard — albums + some extras
- Discography / Everything — all releases
Workflow
1. Search for an artist
bash scripts/lidarr.sh search "Artist Name"
Returns numbered list with MusicBrainz links.
2. Check if artist exists
CODEBLOCK2
3. Add artist
bash scripts/lidarr.sh add <foreignArtistId>
If artist already exists, this will monitor them instead of failing.
Options:
- -
--discography — add full discography instead of albums only - INLINECODE6 — don't search immediately
4. List albums for an artist
bash scripts/lidarr.sh list-artist-albums <artistId>
Shows all albums with their IDs and monitored status.
5. Monitor specific albums
bash scripts/lidarr.sh monitor-album <albumId>
Monitor and optionally search for a specific album.
Options:
- -
--no-search — monitor but don't search yet
Commands
Search for artists
CODEBLOCK6
Check if artist exists
CODEBLOCK7
Add an artist (FLAC + albums only by default)
CODEBLOCK8
Add with full discography
CODEBLOCK9
List albums for an artist
CODEBLOCK10
Monitor a specific album
CODEBLOCK11
List your library
CODEBLOCK12
Refresh artist metadata
CODEBLOCK13
Remove an artist
CODEBLOCK14
Get configuration
CODEBLOCK15
Lidarr
将音乐(艺术家和专辑)添加到你的Lidarr库中。
设置
创建 ~/.clawdbot/credentials/lidarr/config.json:
json
{
url: http://192.168.1.50:8686,
apiKey: efbd6c29db184911a7b0f4707ae8f10f,
defaultQualityProfile: 2,
defaultMetadataProfile: 7
}
- - defaultQualityProfile:质量配置文件ID(FLAC、MP3等——运行 config 查看选项)
- defaultMetadataProfile:元数据配置文件ID(仅专辑、完整作品集等——运行 config 查看选项)
质量配置文件
通常你会想要FLAC:
元数据配置文件
- - 仅专辑(推荐)——仅录音室专辑
- 标准——专辑 + 一些额外内容
- 完整作品集/全部——所有发行版本
工作流程
1. 搜索艺术家
bash
bash scripts/lidarr.sh search 艺术家名称
返回带编号的列表,包含MusicBrainz链接。
2. 检查艺术家是否存在
bash
bash scripts/lidarr.sh exists
3. 添加艺术家
bash
bash scripts/lidarr.sh add
如果艺术家已存在,则会将其设为监控状态而非报错。
选项:
- - --discography — 添加完整作品集而非仅专辑
- --no-search — 不立即搜索
4. 列出艺术家的专辑
bash
bash scripts/lidarr.sh list-artist-albums
显示所有专辑及其ID和监控状态。
5. 监控特定专辑
bash
bash scripts/lidarr.sh monitor-album
监控并可选择搜索特定专辑。
选项:
命令
搜索艺术家
bash
bash scripts/lidarr.sh search KMFDM
检查艺术家是否存在
bash
bash scripts/lidarr.sh exists 45074d7c-5307-44a8-854f-ae072e1622ae
添加艺术家(默认FLAC + 仅专辑)
bash
bash scripts/lidarr.sh add 45074d7c-5307-44a8-854f-ae072e1622ae
添加完整作品集
bash
bash scripts/lidarr.sh add 45074d7c-5307-44a8-854f-ae072e1622ae --discography
列出艺术家的专辑
bash
bash scripts/lidarr.sh list-artist-albums 382
监控特定专辑
bash
bash scripts/lidarr.sh monitor-album 11116
列出你的库
bash
bash scripts/lidarr.sh list
刷新艺术家元数据
bash
bash scripts/lidarr.sh refresh
移除艺术家
bash
bash scripts/lidarr.sh remove # 保留文件
bash scripts/lidarr.sh remove --delete-files # 同时删除文件
获取配置
bash
bash scripts/lidarr.sh config