Update main.go

pull/33/head
itouakirai 2 months ago committed by GitHub
parent 0a2f35c4db
commit fd5b449db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      main.go

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

Loading…
Cancel
Save