switch artists page to grid view

This commit is contained in:
Drew Weymouth
2023-05-23 17:21:48 -07:00
parent 1686c563fe
commit 5acd9dd37f
7 changed files with 234 additions and 13 deletions
+1
View File
@@ -20,6 +20,7 @@ type AlbumWithTracks struct {
type Artist struct {
ID string
CoverArtID string
Name string
Favorite bool
AlbumCount int
@@ -311,6 +311,7 @@ func toArtistFromID3(ar *subsonic.ArtistID3) *mediaprovider.Artist {
}
return &mediaprovider.Artist{
ID: ar.ID,
CoverArtID: ar.CoverArt,
Name: ar.Name,
Favorite: !ar.Starred.IsZero(),
AlbumCount: ar.AlbumCount,