π¦ ClawHub
Sabnzbd
by @jmagar
Manage Usenet downloads with SABnzbd. Use when the user asks to "check SABnzbd", "list NZB queue", "add NZB", "pause downloads", "resume downloads", "SABnzbd status", "Usenet queue", "NZB history", or mentions SABnzbd/sab download management.
TERMINAL
clawhub install sabnzbdπ About This Skill
name: sabnzbd version: 1.0.0 description: Manage Usenet downloads with SABnzbd. Use when the user asks to "check SABnzbd", "list NZB queue", "add NZB", "pause downloads", "resume downloads", "SABnzbd status", "Usenet queue", "NZB history", or mentions SABnzbd/sab download management.
SABnzbd API
Manage Usenet downloads via SABnzbd's REST API.
Setup
Config: ~/.clawdbot/credentials/sabnzbd/config.json
{
"url": "http://localhost:8080",
"apiKey": "your-api-key-from-config-general"
}
Get your API key from SABnzbd Config β General β Security.
Quick Reference
Queue Status
# Full queue
./scripts/sab-api.sh queueWith filters
./scripts/sab-api.sh queue --limit 10 --category tvSpecific job
./scripts/sab-api.sh queue --nzo-id SABnzbd_nzo_xxxxx
Add NZB
# By URL (indexer link)
./scripts/sab-api.sh add "https://indexer.com/get.php?guid=..."With options
./scripts/sab-api.sh add "URL" --name "My Download" --category movies --priority highBy local file
./scripts/sab-api.sh add-file /path/to/file.nzb --category tv
Priority: force, high, normal, low, paused, duplicate
Control Queue
./scripts/sab-api.sh pause # Pause all
./scripts/sab-api.sh resume # Resume all
./scripts/sab-api.sh pause-job
./scripts/sab-api.sh resume-job
./scripts/sab-api.sh delete # Keep files
./scripts/sab-api.sh delete --files # Delete files too
./scripts/sab-api.sh purge # Clear queue
Speed Control
./scripts/sab-api.sh speedlimit 50 # 50% of max
./scripts/sab-api.sh speedlimit 5M # 5 MB/s
./scripts/sab-api.sh speedlimit 0 # Unlimited
History
./scripts/sab-api.sh history
./scripts/sab-api.sh history --limit 20 --failed
./scripts/sab-api.sh retry # Retry failed
./scripts/sab-api.sh retry-all # Retry all failed
./scripts/sab-api.sh delete-history
Categories & Scripts
./scripts/sab-api.sh categories
./scripts/sab-api.sh scripts
./scripts/sab-api.sh change-category movies
./scripts/sab-api.sh change-script notify.py
Status & Info
./scripts/sab-api.sh status # Full status
./scripts/sab-api.sh version
./scripts/sab-api.sh warnings
./scripts/sab-api.sh server-stats # Download stats
Response Format
Queue slot includes:
nzo_id, filename, statusmb, mbleft, percentagetimeleft, priority, catscript, labelsStatus values: Downloading, Queued, Paused, Propagating, Fetching
History status: Completed, Failed, Queued, Verifying, Repairing, Extracting
βοΈ Configuration
Config: ~/.clawdbot/credentials/sabnzbd/config.json
{
"url": "http://localhost:8080",
"apiKey": "your-api-key-from-config-general"
}
Get your API key from SABnzbd Config β General β Security.