From 762d2518b1ebe07829820b98060263241c8d06b8 Mon Sep 17 00:00:00 2001 From: itouakirai <85016486+itouakirai@users.noreply.github.com> Date: Sat, 29 Jun 2024 02:39:05 +0800 Subject: [PATCH] fix playlist artist cover error --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c912e4c..b974136 100644 --- a/main.go +++ b/main.go @@ -1392,7 +1392,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro os.MkdirAll(sanAlbumFolder, os.ModePerm) fmt.Println(albumFolder) //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) if err != nil { fmt.Println("Failed to write artist cover.")