mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
Update main.go
This commit is contained in:
2
main.go
2
main.go
@@ -364,7 +364,7 @@ func writeCover(sanAlbumFolder, name string, url string) (string, error) {
|
||||
}
|
||||
defer do.Body.Close()
|
||||
if do.StatusCode != http.StatusOK {
|
||||
if (Config.CoverFormat == "original") {
|
||||
if Config.CoverFormat == "original" {
|
||||
fmt.Println("Failed to get cover, falling back to " + ext + " url.")
|
||||
splitByDot := strings.Split(originalUrl, ".")
|
||||
last := splitByDot[len(splitByDot)-1]
|
||||
|
||||
Reference in New Issue
Block a user