add config.yaml support

This commit is contained in:
itouakirai 2024-04-28 09:42:39 +08:00 committed by GitHub
parent e384d06c09
commit 3089c5b5bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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