mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Artwork reader for Artist
This commit is contained in:
parent
bf461473ef
commit
918fee3ea3
11 changed files with 99 additions and 24 deletions
|
@ -34,6 +34,10 @@ func (a Artist) ArtistImageUrl() string {
|
|||
return a.SmallImageUrl
|
||||
}
|
||||
|
||||
func (a Artist) CoverArtID() ArtworkID {
|
||||
return artworkIDFromArtist(a)
|
||||
}
|
||||
|
||||
type Artists []Artist
|
||||
|
||||
type ArtistIndex struct {
|
||||
|
|
|
@ -82,3 +82,10 @@ func artworkIDFromPlaylist(pls Playlist) ArtworkID {
|
|||
ID: pls.ID,
|
||||
}
|
||||
}
|
||||
|
||||
func artworkIDFromArtist(ar Artist) ArtworkID {
|
||||
return ArtworkID{
|
||||
Kind: KindArtistArtwork,
|
||||
ID: ar.ID,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue