Spotify.MLH is a lightweight VS Code extension that allows a user to control their spotify player from within their coding environment. It was created during a 2 week sprint by three fellows in the spring 2021 Major League Hacking Externship Fellowship. Each fellow worked ~20 hours a week on this extension on top of their schoolwork or their jobs, respectively.
Control playback:
- Play
- Pause
- Next song
- Previous Song
- Add to queue
Browse library:
- Playlists
- Liked Albums
- Followed Artists
- History
- Liked Tracks
- Sign up for a Spotify account (a free account is ok for development, but Premium is required for testing)
- Log in to Spotify for Developers
- Create an app
- Open the settings for your app and add
vscode://goofies.spotifymlh/authorized
as a redirect URI - Clone the repository
git clone [email protected]:larkinds/Spotify.MLH.git
- Open VS Code
cd Spotify.MLH && code .
- Duplicate
src/secrets.ts.txt
and rename it tosrc/secrets.ts
cp src/secrets.ts.txt src/secrets.ts
- Set
clientId
andclientSecret
insecrets.ts
to the values found in your developer app settings - Install extension dependencies
npm install
- Run the extension by hitting F5 or clicking the
Run Extension
button at the bottom of your screen - Once in the new VSCode window, follow the instructions in the pop-ups to authorize the Spotify.MLH to access your spotify