π¦ ClawHub
Sonarr
by @jordyvandomselaar
Search and add TV shows to Sonarr. Supports monitor options, search-on-add.
TERMINAL
clawhub install sonarrπ About This Skill
name: sonarr version: 1.0.0 description: Search and add TV shows to Sonarr. Supports monitor options, search-on-add. metadata: {"clawdbot":{"emoji":"πΊ","requires":{"bins":["curl","jq"]}}}
Sonarr
Add TV shows to your Sonarr library.
Setup
Create ~/.clawdbot/credentials/sonarr/config.json:
{
"url": "http://localhost:8989",
"apiKey": "your-api-key",
"defaultQualityProfile": 1
}
defaultQualityProfile: Quality profile ID (run config to see options)Workflow
1. Search: search "Show Name" - returns numbered list
2. Present results with TVDB links - always show clickable links
3. Check: User picks a number
4. Add: Add show and start search
Important
Title (Year)defaultQualityProfile from config; can override per-addCommands
Search for shows
bash scripts/sonarr.sh search "Breaking Bad"
Check if show exists in library
bash scripts/sonarr.sh exists
Add a show (searches immediately by default)
bash scripts/sonarr.sh add # searches right away
bash scripts/sonarr.sh add --no-search # don't search
Remove a show
bash scripts/sonarr.sh remove # keep files
bash scripts/sonarr.sh remove --delete-files # delete files too
Always ask user if they want to delete files when removing!Get root folders & quality profiles (for config)
bash scripts/sonarr.sh config
βοΈ Configuration
Create ~/.clawdbot/credentials/sonarr/config.json:
{
"url": "http://localhost:8989",
"apiKey": "your-api-key",
"defaultQualityProfile": 1
}
defaultQualityProfile: Quality profile ID (run config to see options)