Update main.go

This commit is contained in:
itouakirai 2024-09-15 09:22:39 +08:00 committed by GitHub
parent 0a2f35c4db
commit fd5b449db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1705,6 +1705,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
if exists {
fmt.Println("Track already exists locally.")
oktrackNum += 1
okDict[albumId] = append(okDict[albumId], trackNum)
continue
}
m4aexists, err := fileExists(m4atrackPath)
@ -1714,6 +1715,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
if m4aexists {
fmt.Println("Track already exists locally.")
oktrackNum += 1
okDict[albumId] = append(okDict[albumId], trackNum)
continue
}
@ -1823,6 +1825,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
fmt.Printf("Successfully processed and deleted %s\n", filepath.Base(trackPath))
}
oktrackNum += 1
okDict[albumId] = append(okDict[albumId], trackNum)
}
}
return err