Repository navigation
Description
Description
Live download progress never appears for jobs added on SABnzbd 5.0.2+. SeerrNG only accepts queue IDs shaped SABnzbd_nzo_<alnum>, but since 5.0.2 SABnzbd sets nzo_id = str(uuid.uuid4()). Radarr/Sonarr/Lidarr pass nzo_id through as downloadId, so SeerrNG discards these keys and never polls SABnzbd. Test still succeeds (it only calls mode=version and mode=queue).
Expected: SABnzbd jobs show live progress, speed and ETA, like torrent jobs.
Actual: only the periodic *arr queue figures; no live progress.
Version
SeerrNG v3.72.40 (ghcr.io/snapetech-org/seerrng:v3.72.40); same code on main @ 00b4b12. SABnzbd 5.1.3.
Steps to Reproduce
- Settings → Services → Live Download Progress → Add Usenet client: SABnzbd 5.0.2 or later. Test succeeds.
- Let Radarr, Sonarr or Lidarr send a release to SABnzbd.
- SABnzbd
api?mode=queueshows a UUIDnzo_id(e.g.919108f7-52d1-4320-9bac-f847db4148a8). - As a non-admin user, open that title while it downloads: no live progress.
Logs
None; the failure is silent.
Platform
desktop
Database
SQLite (default)
Device
Any (server-side)
Operating System
Any (server-side)
Browser
Any (server-side)
Additional Context
Root cause (main @ 00b4b12)
- Legacy-only pattern: types.ts#L62-L67
normalizeDownloadKeyreturnsundefinedfor a UUID (types.ts#L82-L88), so noliveDownloadTokenis issued (liveDownloadTokens.ts#L37-L40).- The same pattern gates keysForClientType, getTorrents and mapSabnzbdSlot.
- SABnzbd: ee3cd74 "Use UUID4 for nzo_id" (#3395), first in 5.0.2RC1; 5.1.3 nzbqueue.py#L327-L328.
- *arr:
DownloadId = sabQueueItem.Id(Radarr Sabnzbd.cs#L69),Id=nzo_id(SabnzbdQueueItem.cs#L32-L33); same in Sonarr and Lidarr.
Suggested fix: one helper for both shapes, used wherever SABNZBD_NZO_PATTERN is tested (types.ts L67/L87, sabnzbd.ts L101/L182):
const SABNZBD_LEGACY_NZO = /^SABnzbd_nzo_[A-Za-z0-9_]{1,64}$/; // <= 5.0.1
const SABNZBD_UUID_NZO =
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i; // >= 5.0.2
export const isSabnzbdNzoId = (key: string): boolean =>
SABNZBD_LEGACY_NZO.test(key) || SABNZBD_UUID_NZO.test(key);The _ is there because legacy IDs come from tempfile.mkstemp, whose random part can contain _ (tempfile.py#L140). A hyphenated UUID cannot match a 40/64-hex info hash, so torrent routing is unchanged. Add UUID fixtures to sabnzbd.test.ts (it only uses SABnzbd_nzo_abc123-style IDs).
Related, separate gap (code reading, untested): admins get no liveDownloadToken (mediaResponse.ts#L201-L211); the UI subscribes them via toInfoHash, which accepts only info hashes (useLiveDownload.ts#L24-L27, liveDownloadStore.ts#L35-L44), so admins see no SABnzbd progress for either ID format.
Search Existing Issues
- Yes, I have searched existing issues.
Code of Conduct
- I agree to follow SeerrNG's Code of Conduct
Activity
github-actions commentedon Nov 29, 2026
Possible duplicate detected
This issue may be a duplicate of the following (detected via semantic similarity + LLM review):
A maintainer will review this. If this is not a duplicate, no action is needed.