Skip to content

Live download progress never shows for SABnzbd 5.0.2+ jobs (UUID nzo_id rejected by SABNZBD_NZO_PATTERN) #751

Done

Description

@divinely5066

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

  1. Settings → Services → Live Download Progress → Add Usenet client: SABnzbd 5.0.2 or later. Test succeeds.
  2. Let Radarr, Sonarr or Lidarr send a release to SABnzbd.
  3. SABnzbd api?mode=queue shows a UUID nzo_id (e.g. 919108f7-52d1-4320-9bac-f847db4148a8).
  4. 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)

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

  1. github-actions commented on Nov 29, 2026

    @github-actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions