Update main.go

This commit is contained in:
zhaarey
2025-08-28 19:22:32 +08:00
parent 2207604015
commit d9db2222c5

View File

@@ -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]