|
|
@ -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.") |
|
|
|