feat: artist pictures in the web and Android apps
release / web (push) Successful in 1m59s
release / go (push) Successful in 2m23s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m59s
release / android (push) Successful in 5m29s
release / Build signed APK (push) Successful in 6m26s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 31s
release / Verify release artifacts (tag releases only) (push) Skipped
release / web (push) Successful in 1m59s
release / go (push) Successful in 2m23s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m59s
release / android (push) Successful in 5m29s
release / Build signed APK (push) Successful in 6m26s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 31s
release / Verify release artifacts (tag releases only) (push) Skipped
Minstrel fetched artist pictures but showed them only to Subsonic apps.
GET /api/artists/{id}/image now serves the picture, or else the artist's
newest album cover, the same image Subsonic apps get. Artist listings
point at it when the artist has a picture and keep the album cover
otherwise; the artist page points at it whenever the artist has albums,
and the web artist page shows it beside the name.
Android shows the picture for cached artists that have one, and the
album cover for the rest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,9 +42,10 @@ type Page[T any] struct {
|
||||
|
||||
// ArtistRef is the lightweight artist shape used in lists and search results.
|
||||
// SortName is exposed so the SPA's alphabetical-grid divider can group rows
|
||||
// by the catalogue sort order ("The Copper Lanterns" → "C"). CoverURL is derived from
|
||||
// a representative album (most-recent with cover_art_path); empty when the
|
||||
// artist's discography has no cover art.
|
||||
// by the catalogue sort order ("The Copper Lanterns" → "C"). CoverURL is the
|
||||
// artist's picture (/api/artists/{id}/image) when one was fetched, else a
|
||||
// representative album's cover (most-recent with cover_art_path) where the
|
||||
// listing looks one up; empty when there is neither.
|
||||
type ArtistRef struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
|
||||
Reference in New Issue
Block a user