Use the highest resolution artist image from Spotify
This commit is contained in:
parent
4887c33053
commit
9590b3c25d
1 changed files with 3 additions and 3 deletions
|
|
@ -25,12 +25,12 @@ type Artist struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a Artist) ArtistImageUrl() string {
|
func (a Artist) ArtistImageUrl() string {
|
||||||
if a.MediumImageUrl != "" {
|
|
||||||
return a.MediumImageUrl
|
|
||||||
}
|
|
||||||
if a.LargeImageUrl != "" {
|
if a.LargeImageUrl != "" {
|
||||||
return a.LargeImageUrl
|
return a.LargeImageUrl
|
||||||
}
|
}
|
||||||
|
if a.MediumImageUrl != "" {
|
||||||
|
return a.MediumImageUrl
|
||||||
|
}
|
||||||
return a.SmallImageUrl
|
return a.SmallImageUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue