mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
fix Various Artists dont have artist cover
This commit is contained in:
8
main.go
8
main.go
@@ -1405,9 +1405,11 @@ func rip(albumId string, token string, storefront string, userToken string) erro
|
||||
fmt.Println(albumFolder)
|
||||
//get artist cover
|
||||
if config.SaveArtistCover && !(strings.Contains(albumId, "pl.")) {
|
||||
err = writeCover(singerFolder, "folder", meta.Data[0].Relationships.Artists.Data[0].Attributes.Artwork.Url)
|
||||
if err != nil {
|
||||
fmt.Println("Failed to write artist cover.")
|
||||
if len(meta.Data[0].Relationships.Artists.Data) > 0 {
|
||||
err = writeCover(singerFolder, "folder", meta.Data[0].Relationships.Artists.Data[0].Attributes.Artwork.Url)
|
||||
if err != nil {
|
||||
fmt.Println("Failed to write artist cover.")
|
||||
}
|
||||
}
|
||||
}
|
||||
//get album cover
|
||||
|
||||
Reference in New Issue
Block a user