Everybody gangsta till spotify close your account because you are from unwanted country
Anyway, if you want to get back your tracks which you liked and not organized then into playlist - this tool is for you.
If don't have it yet - please visit https://go.dev/dl/
Access your Spotify account dashboard at https://www.spotify.com/. In the privacy settings, you'll find the option to request your data.
Start by registering your application at the following page:
https://developer.spotify.com/my-applications/
You'll get a client ID and secret key for your application. An easy way to provide this data to your application is to set the SPOTIFY_ID and SPOTIFY_SECRET environment variables.
RedirectUrl should be http://localhost:8080/callback
Download dependancies
go mod download
If you want to keep it simple - create a playlist with name restore and put YourLibrary.json file in the same folder
SPOTIFY_ID=XXXX SPOTIFY_SECRET=YYYY go run main.go
Otherwise, you can define them via arguments like this:
go run main.go --playlist myPlaylist --filepath /path/to/file.json