fix playlist artist cover error

pull/21/head
itouakirai 4 months ago committed by GitHub
parent 2c8494c6b3
commit 762d2518b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      main.go

@ -1392,7 +1392,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
os.MkdirAll(sanAlbumFolder, os.ModePerm) os.MkdirAll(sanAlbumFolder, os.ModePerm)
fmt.Println(albumFolder) fmt.Println(albumFolder)
//get artist cover //get artist cover
if config.SaveArtistCover && meta.Data[0].Relationships.Artists.Data[0].Attributes.Artwork.Url != "" { if config.SaveArtistCover && !(strings.Contains(albumId, "pl.")) {
err = writeCover(singerFolder, "folder", meta.Data[0].Relationships.Artists.Data[0].Attributes.Artwork.Url) err = writeCover(singerFolder, "folder", meta.Data[0].Relationships.Artists.Data[0].Attributes.Artwork.Url)
if err != nil { if err != nil {
fmt.Println("Failed to write artist cover.") fmt.Println("Failed to write artist cover.")

Loading…
Cancel
Save