https://github.com/codingbeard/go-spotify-sort
https://github.com/codingbeard/go-spotify-sort
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingbeard/go-spotify-sort
- Owner: CodingBeard
- Created: 2020-12-04T17:23:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-04T17:34:10.000Z (over 5 years ago)
- Last Synced: 2025-01-13T22:33:12.961Z (over 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Spotify Sort
Will sort a playlist by:
- Album artist
- Album release date
- Album name
- Disc number
- Track number
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.
You will also need a PLAYLIST_ID environment variable for the playlist to sort. You can get this by right clicking a spotify playlist and copying the URI and taking the last string after the final semicolon.
Example usage:
```
SPOTIFY_ID=0928342342asfd230498 SPOTIFY_SECRET=120938134098asdf12039812 PLAYLIST_ID=asd98fyASDF8asdf go run main.go
```