Update main_select.go

pull/21/head
itouakirai 4 months ago committed by GitHub
parent 3dd6bdceea
commit 1e963f1567
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      main_select.go

@ -1278,7 +1278,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