feat(subsonic): artist pictures in Subsonic apps
release / go (push) Successful in 1m47s
release / web (push) Successful in 1m10s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m3s
release / android (push) Successful in 4m27s
release / Build signed APK (push) Successful in 5m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m47s
release / web (push) Successful in 1m10s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m3s
release / android (push) Successful in 4m27s
release / Build signed APK (push) Successful in 5m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
getCoverArt now answers an artist's id: the artist picture Minstrel fetched, when its file is there, or else the cover of the artist's most recently added album that has one, which is what Minstrel's own artist cards show. Every artist entry carries its id as coverArt, so apps ask. The lookup is coverart.ResolveArtistPath, beside the album one, and looks through at most ten of an artist's albums for a cover. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ func TestGetArtistInfo_IsTheMBIDAndSimilarArtistsInTheLibrary(t *testing.T) {
|
||||
if code := call(t, f.browse().getArtistInfo2, f.user, "id="+id, &got); code != 0 {
|
||||
t.Fatalf("getArtistInfo2 %s: error %d", id, code)
|
||||
}
|
||||
want := ArtistInfo{MusicBrainzID: mbid, SimilarArtists: []ArtistRef{{ID: uuidToID(other.ID), Name: "Quiet Harbour", AlbumCount: 1}}}
|
||||
want := ArtistInfo{MusicBrainzID: mbid, SimilarArtists: []ArtistRef{{ID: uuidToID(other.ID), Name: "Quiet Harbour", CoverArt: uuidToID(other.ID), AlbumCount: 1}}}
|
||||
if got.ArtistInfo2.MusicBrainzID != want.MusicBrainzID || !slices.Equal(got.ArtistInfo2.SimilarArtists, want.SimilarArtists) {
|
||||
t.Errorf("getArtistInfo2 %s = %+v, want %+v", id, got.ArtistInfo2, want)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user