Skip to content

Navidrome scan uses the release MBID instead of the release-group MBID, so albums never match requested or Lidarr rows #750

Done

Description

@divinely5066

Description

The Navidrome scanner matches albums on the MusicBrainz release id, but SeerrNG keys music media on the release-group id. Navidrome albums therefore never match the row created by a request or by the Lidarr scan.

Environment: SeerrNG v3.72.40 (Docker, SQLite), Navidrome 0.64.2.

Expected: The Navidrome album marks the existing release-group row as available, as the Jellyfin and Plex scanners already do.

Actual: There is no error. processMusic finds no row for the release id, so it inserts a new AVAILABLE music row (debug log Saved new album: <title>) and leaves the requested/Lidarr row unchanged. On one library, none of the 56 Navidrome albums with a musicBrainzId matched a Lidarr foreignAlbumId. Navidrome's stored mbzReleaseGroupId matched for all 56.

Version

v3.72.40 (ghcr.io/snapetech-org/seerrng:v3.72.40). The code is unchanged on main @ 00b4b12.

Steps to Reproduce

  1. Have an album with MusicBrainz tags (for example, written by Picard) in Navidrome.
  2. Request it in SeerrNG, or have it in Lidarr.
  3. In Settings → Services → Navidrome Availability, connect <navidrome-host> and enable Sync Availability During the Scheduled Scan.
  4. In Settings → Jobs & Cache, run Navidrome Scan.
  5. The album is still not available. A second music row with the release id and status AVAILABLE now exists.

Screenshots

No response

Logs

No response

Platform

desktop

Database

SQLite (default)

Device

n/a (server-side scanner)

Operating System

Docker (Linux container)

Browser

n/a (server-side scanner)

Additional Context

Root cause (main @ 00b4b12)

Suggested fix: In NavidromeScanner.processItem, resolve the release id to its release group with MusicBrainz.getReleaseGroup({ releaseId }) (musicbrainz/index.ts#L1117-L1156, cached for 12 h), as the Jellyfin scanner does. Skip albums that do not resolve. Add a test in which the release id and the release-group id differ.

Search Existing Issues

  • Yes, I have searched existing issues.

Code of Conduct

  • I agree to follow SeerrNG's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions