mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
add config.yaml support
This commit is contained in:
2
main.go
2
main.go
@@ -1047,7 +1047,7 @@ func getSongLyrics(songId string, storefront string, token string, userToken str
|
|||||||
}
|
}
|
||||||
|
|
||||||
func writeCover(sanAlbumFolder, url string) error {
|
func writeCover(sanAlbumFolder, url string) error {
|
||||||
covPath := filepath.Join(sanAlbumFolder, "cover.jpg")
|
covPath := filepath.Join(sanAlbumFolder, "cover." + config.CoverFormat)
|
||||||
exists, err := fileExists(covPath)
|
exists, err := fileExists(covPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Failed to check if cover exists.")
|
fmt.Println("Failed to check if cover exists.")
|
||||||
|
|||||||
Reference in New Issue
Block a user