How Navidrome groups music
Two songs are on the same album when their tags say so. If the files carry a MusicBrainz album ID, which a tagger such as Picard writes, Navidrome goes by that. If they do not, it goes by four things together, which are the album artist, the album name, the album version and the release date. One odd value among them and a song lands on an album of its own. A library first set up on Navidrome 0.65.0 or later leaves the release date out of that list. One set up on an earlier version keeps it after the upgrade.
This is the main difference from Plex. Plex leans on the folders and on its own match against an online database, so it forgives untidy tags. Navidrome trusts the files. The upside is that the files hold everything, so the library looks the same in any app and on any server you move it to.
Folders still earn their keep. A folder per artist with a folder per album inside is what cover files, ReplayGain scanners and library managers expect, and it is how you find things by hand.
The usual problems
These are the ones we met on a library of about 100,000 songs that had lived on Plex for years, with the counts from that library. Yours will have the same kinds in different numbers.
An album shows up as several
Nearly always a guest in the album artist. A song tagged "Artist feat. Someone" as its album artist splits off from the rest. On our library 110 albums showed as 368, and the guests added about 500 artist pages that should not have existed. Set the album artist to the main artist on every song of the album.
The discs are shuffled together
Songs from disc one and disc two appear interleaved, track 1, track 1, track 2, track 2. The files are in disc folders and have no disc number in their tags. That was true of 307 of our 514 multi-disc albums. Add the disc number.
A classic album has this year's date
The files are from a remaster and carry the remaster's date. Add the original date and Navidrome shows the original year. About 1,800 of our albums needed it.
EPs and singles are mixed in with the albums
With no release type in the files, everything is an album. Once tagged, the EPs, singles, compilations and live records sort themselves into their own groups on an artist's page.
One artist has several pages
Navidrome makes an artist page for each spelling it finds, so "Ye" and "Kanye West" are two artists until the album artist says the same thing on both sets of albums. Pick one name per artist and use it everywhere.
A folder of loose songs became many albums
A folder is not an album to Navidrome. Loose songs with different album names in their tags, or none, each make their own. Give them one album name and one album artist.
A song shows no length
The song's row reads 0:00 in Navidrome, and an app may refuse to seek in it or to count it as played. The cause is the file itself. Some downloads arrive as a fragmented MP4, an .m4a that keeps its audio in many small pieces and leaves the length in its header at zero. That header is where Navidrome looks. On our test library 20 songs from two albums were like this, and all of them held FLAC audio. For such a song, Lagu on the iPhone, the Apple TV and the Apple Watch reads the length from the file, while desktop and Android show 0:00 and do not scrobble it.
The cure is to rewrite the audio into a plain file. Nothing is re-encoded, so the sound is the same bit for bit. With FFmpeg it is one command a song.
ffmpeg -i "song.m4a" -map 0:a -map 0:v? -c copy -disposition:v attached_pic "song.flac" That is for FLAC audio, and it keeps the cover picture. If the audio is AAC or ALAC, give the new file an .m4a name and FFmpeg writes an ordinary MP4. We have only run the FLAC one.
Compare the tags of the two files before the old one goes. On ours FFmpeg carried the title, the artists, the album, the numbers, the date and the cover across. It left out the ISRC, and it wrote the track as 4/11 where a FLAC file wants TRACKNUMBER 4 and TRACKTOTAL 11, so we set those by hand.
One more tag decides whether the song keeps its play count and hearts. Navidrome reads an M4A's date as its release date as well, and on a library first set up before 0.65.0 the release date is part of what it knows an album by. Write the same date into RELEASEDATE on the new file before it goes into the library. Navidrome then takes the new file for the old song on its next scan. We left it out the first time and got a second album with no history.
Fixing tags with Picard
MusicBrainz Picard is free and runs on Windows, macOS and Linux. It matches an album against the MusicBrainz database and writes the whole set of tags in one go, including the album artist, disc numbers, the original date, the release type and the MusicBrainz IDs that make Navidrome's grouping exact.
- Before you start, open the Options menu and make sure Rename Files and Move Files are off. Picard then changes tags and leaves every file where it is, which is what you want when a library manager or your own habits decide the folder layout.
- Add an album's folder to Picard and choose Cluster, then Lookup. Picard proposes a release on the right.
- Check that it picked the right edition. The track count and track lengths are the quickest tell.
- Choose Save.
Work through a few albums first and look at them in Navidrome before doing hundreds. Picard's quick start shows each step with pictures.
For a single field on many files, such as one artist name across thirty albums, a tag editor such as Mp3tag is quicker than a lookup.
On our library, fixing tags in place kept every song's place in playlists along with its hearts and play counts. Adding original dates and release types left the albums untouched as well. The 366 albums whose album artist changed were given new album IDs, and their songs kept theirs.
Tag names by file type
Taggers show friendly names. If you edit by hand or write a script, these are the fields underneath.
| Tag | FLAC, Ogg, Opus | MP3 (ID3v2.4) | M4A |
|---|---|---|---|
| Album artist | ALBUMARTIST | TPE2 | aART |
| Disc number | DISCNUMBER | TPOS | disk |
| Date | DATE | TDRC | ©day |
| Original date | ORIGINALDATE | TDOR | A custom originaldate field |
| Release type | RELEASETYPE | TXXX:MusicBrainz Album Type | MusicBrainz Album Type |
| Compilation | COMPILATION set to 1 | TCMP set to 1 | The compilation flag |
Release types use MusicBrainz's names in lower case, such as album, ep, single, compilation and live. A record can have two, so a live EP is both.
For songs with more than one artist, Navidrome prefers a separate ARTISTS tag that lists each name, beside the usual artist tag that holds the name as it should be displayed. Picard can write it, and Navidrome's tagging page has the script.
See what Navidrome read
When an album looks wrong, check what Navidrome saw before changing anything. In its web page, open a song, choose Get Info, then Raw Tags. That shows every tag exactly as it was read from the file, and the odd one out is usually plain to see beside a song that behaves.
After you save a change, Navidrome reads the file again by itself. Ask for a scan from the web page if you would rather not wait.
What Lagu does with them
Lagu shows what your server reports, so every fix above shows up in the app with no further setup.
- An artist's page is divided into albums, singles and EPs, compilations and live records from the release types.
- The original year shows on an album when the files carry it, and Newly Released on Home goes by original date, so a new remaster of an old album does not count as new.
- Decade lists in Lagu Mixes use the original year. Without one, a song dated long after its artist's first album is taken for a reissue and left out, which can drop a real later song. Original dates give the best lists.
- A song whose tags list several artists offers each of them under View Artist.
- Genres drive the genre pages, genre stations, and which Lagu Mixes your library can fill.
Credits and sources
This guide leans on other people's work. Each project below is its own, with its own license and its own documentation, and theirs is the one to trust if it and this page ever disagree.
- Navidrome tagging guidelines
How Navidrome reads tags, multi-valued artists, dates and compilations, with Picard scripts for the finer points.
- Navidrome persistent IDs
The exact rule for what makes two songs part of one album, and the warning about retagging and moving in one go.
- Navidrome 0.65.0 release notes
The new default album rule without the release date, for libraries set up on 0.65.0 or later.
- MusicBrainz Picard MetaBrainz Foundation, GPL-2.0
The tagger this guide uses. The tag names in the table are from Picard's tag mapping.
- MusicBrainz
The public database Picard matches against, and the source of the release types (album, EP, single, compilation, live and the rest).
- FFmpeg The FFmpeg project, LGPL-2.1 or GPL depending on the build
The command that rewrites a fragmented file without re-encoding its audio. We ran it with FFmpeg 6.1.
- Mp3tag
A tag editor for changing a field by hand across many files. Free on Windows, paid on the Mac.