From 3089c5b5bf4ba12559f211685963f50368231022 Mon Sep 17 00:00:00 2001 From: itouakirai <85016486+itouakirai@users.noreply.github.com> Date: Sun, 28 Apr 2024 09:42:39 +0800 Subject: [PATCH] add config.yaml support --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4e45041..af97639 100644 --- a/main.go +++ b/main.go @@ -1047,7 +1047,7 @@ func getSongLyrics(songId string, storefront string, token string, userToken str } func writeCover(sanAlbumFolder, url string) error { - covPath := filepath.Join(sanAlbumFolder, "cover.jpg") + covPath := filepath.Join(sanAlbumFolder, "cover." + config.CoverFormat) exists, err := fileExists(covPath) if err != nil { fmt.Println("Failed to check if cover exists.")