Skip to content

Commit

Permalink
Use the highest resolution artist image from Spotify
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Apr 10, 2023
1 parent 4887c33 commit 9590b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model/artist.go
Expand Up @@ -25,12 +25,12 @@ type Artist struct {
}

func (a Artist) ArtistImageUrl() string {
if a.MediumImageUrl != "" {
return a.MediumImageUrl
}
if a.LargeImageUrl != "" {
return a.LargeImageUrl
}
if a.MediumImageUrl != "" {
return a.MediumImageUrl
}
return a.SmallImageUrl
}

Expand Down

0 comments on commit 9590b3c

Please sign in to comment.