π§ Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
test(artwork): cover artist folder lookup for a single album without images
Deluan5bd14da65cd6
diff --git a/core/artwork/e2e/artist_test.go b/core/artwork/e2e/artist_test.goindex 5a9396cc3..4a6959d95 100644--- a/core/artwork/e2e/artist_test.go+++ b/core/artwork/e2e/artist_test.go@@ -90,6 +90,28 @@ var _ = Describe("Artist artwork resolution", func() {})})+ When("the artist's only album folder has no images of its own", func() {+ // Artist/+ // βββ backdrop1.jpg+ // βββ folder.jpg β matched by folder.*+ // βββ logo.png+ // βββ Album/+ // βββ 01 - Track.mp3+ // βββ 02 - Track.mp3+ It("resolves the artist folder, not the library root", func() {+ conf.Server.ArtistArtPriority = "folder.*, artist.*, album/artist.*"+ setLayout(fstest.MapFS{+ "Artist/Album/01 - Track.mp3": trackFile(1, "Track 1", map[string]any{"albumartist": "Artist", "album": "Album"}),+ "Artist/Album/02 - Track.mp3": trackFile(2, "Track 2", map[string]any{"albumartist": "Artist", "album": "Album"}),+ "Artist/backdrop1.jpg": smallPNG("backdrop"),+ "Artist/folder.jpg": smallPNG("artist-folder"),+ "Artist/logo.png": smallPNG("logo"),+ })+ scan()+ expectArtistFolder(soleArtist(), "Artist/folder.jpg")+ })+ })+When("the artist's only album has its tracks in disc subfolders", func() {// Artist/// βββ artist.jpg β wins (artist.* before album/artist.*)