How raespanha/downloadarr works
Downloadarr accepts Sonarr/Radarr requests through its qBittorrent-compatible API, records durable jobs, submits them to TorBox, polls their lifecycle, and delivers ready files into shared storage for Arr to import. Its dashboard exposes operational and transfer monitoring; settings and maintenance support safe operation. The graph preserves documented capabilities, but some subsystem links rely on README or SOURCE INDEX references because relevant implementations were not excerpted.
Main entry points: service.py Job lifecycle service · app.py HTTP application · qbittorrent.py qBittorrent API · engine.py SQLite database
Components 20
API and operations
- HTTP application
src/downloadarr/api/app.py - API authentication
src/downloadarr/api/auth.py - qBittorrent API
src/downloadarr/api/qbittorrent.py - Monitoring dashboard
src/downloadarr/api/dashboard.py
Download lifecycle
- Job lifecycle service
src/downloadarr/jobs/service.py - Lifecycle poller
src/downloadarr/jobs/poller.py - Arr metadata enrichment
src/downloadarr/arr_metadata.py - Provider adapter
src/downloadarr/providers/base.py - Magnet parsing
src/downloadarr/magnets.py
Persistence and delivery
- SQLite database
src/downloadarr/db/engine.py - Job and history records
src/downloadarr/db/models.py - Resumable downloader
src/downloadarr/downloader.py - Safe file writer
src/downloadarr/writer.py - Transfer manifest
src/downloadarr/manifest.py
Monitoring and configuration
- Settings service
src/downloadarr/settings.py - Maintenance commands
src/downloadarr/maintenance.py - Lifecycle and transfer monitoring
src/downloadarr/jobs/service.py
Other components
- Sonarr / Radarr
- TorBox
- Shared download storage
Connections 21
- Sonarr / Radarr → HTTP application: calls
README.md - HTTP application → API authentication: registers
src/downloadarr/api/app.py - HTTP application → qBittorrent API: routes to
src/downloadarr/api/app.py - HTTP application → Monitoring dashboard: routes to
src/downloadarr/api/app.py - qBittorrent API → API authentication: checks access
src/downloadarr/api/qbittorrent.py - qBittorrent API → Job lifecycle service: submits commands
src/downloadarr/api/qbittorrent.py - qBittorrent API → Magnet parsing: parses magnets
src/downloadarr/api/qbittorrent.py - Job lifecycle service → Provider adapter: dispatches jobs
src/downloadarr/jobs/service.py - Provider adapter → TorBox: uses API
README.md - Job lifecycle service → SQLite database: stores state
src/downloadarr/jobs/service.py - SQLite database → Job and history records: persists
src/downloadarr/db/engine.py - Job lifecycle service → Resumable downloader: delivers files
src/downloadarr/jobs/service.py - Resumable downloader → Safe file writer: writes chunks
src/downloadarr/downloader.py - Safe file writer → Transfer manifest: updates progress
src/downloadarr/writer.py - Resumable downloader → Shared download storage: publishes files
README.md - Lifecycle poller → Job lifecycle service: polls lifecycle
src/downloadarr/jobs/poller.py - Job lifecycle service → Arr metadata enrichment: enriches jobs
src/downloadarr/jobs/service.py - Monitoring dashboard → Job and history records: reads status
src/downloadarr/api/dashboard.py - Monitoring dashboard → Lifecycle and transfer monitoring: shows monitoring
README.md - Settings service → SQLite database: configures storage
- Maintenance commands → SQLite database: maintains database
src/downloadarr/maintenance.py