Repository navigation
Description
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
- Have an album with MusicBrainz tags (for example, written by Picard) in Navidrome.
- Request it in SeerrNG, or have it in Lidarr.
- In Settings → Services → Navidrome Availability, connect
<navidrome-host>and enable Sync Availability During the Scheduled Scan. - In Settings → Jobs & Cache, run Navidrome Scan.
- The album is still not available. A second music row with the release id and status
AVAILABLEnow 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)
- The scanner passes
AlbumID3.musicBrainzIdfromgetAlbumList2straight toprocessMusic: api/navidrome/index.ts#L57-L71, scanners/navidrome/index.ts#L79-L88. processMusiclooks up bymbIdonly, and otherwise inserts anAVAILABLErow: baseScanner.ts#L782-L795, #L944-L990.- Elsewhere, music rows use the release group:
- Lidarr
foreignAlbumId: lidarr/index.ts#L180-L182 - Requests: MediaRequest.ts#L419-L493
- The Jellyfin and Plex scanners convert release ids with
getReleaseGroup({ releaseId }): jellyfin/index.ts#L765-L788, plex/index.ts#L920-L952
- Lidarr
- Navidrome 0.64.2 sets
musicBrainzId = album.MbzAlbumID(helpers.go#L506). That value comes from themusicbrainz_albumidtag (map_mediafile.go#L56-L57), which Picard calls the MusicBrainz Release ID. The release group is stored separately (album.go#L49) andOpenSubsonicAlbumID3does not expose it (responses.go#L266-L285). Navidrome master is the same.
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
Activity