mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
Adapt #5856's artist-folder fix to the new artwork pipeline. The readers it patched (reader_album.go, reader_artist.go) no longer exist here, so the fix moves into their replacements: - folders_album.go: loadAlbumFoldersPaths narrows to a single album and gains master's loadFolders/folderImages split. - folders_artist.go: adds loadArtistAlbumRoots and commonDir, and loadArtistFolder only climbs when the artist has a single album root. - resolve.go: the artist chain reads album roots instead of the parent-promoted album folder list. The album and disc chains keep using loadAlbumFoldersPaths, whose promoted parent is what finds cover art above disc subfolders, so the artist chain needed its own loader rather than a changed shared one. The e2e specs came in from master; they are rewritten against this branch's harness, which asserts the resolved source path instead of the served bytes and so pins the artist folder itself.