Browse Source

Update README

pull/4/head
Wesley Kerfoot 5 years ago
parent
commit
f1976eced7
  1. 25
      README.md

25
README.md

@ -3,23 +3,20 @@
### Please note that this won't work without Spotify Premium because Spotify limits web API access to non-free accounts.
### This also requires you to have set up [mopidy-spotify](https://github.com/mopidy/mopidy-spotify) in order to play spotify tracks.
* Run `pip install --user .` in this repo.
* Run `pip3 install --user .` in this repo.
* Go to [https://developer.spotify.com/dashboard/applications](https://developer.spotify.com/dashboard/applications) and create an application. Call it whatever you want.
* Create a `.env` or `.envrc` file with contents like this, put it wherever you
want.
* Go to "Edit Settings" in your newly created app, then add
`http://localhost:8080`
as a redirect URI and hit "Save" (You may choose a different one by setting
`SPOTIPY_REDIRECT_URI` in your environment)
```
export SPOTIPY_CLIENT_ID='YOUR_CLIENT_ID'
export SPOTIPY_CLIENT_SECRET='YOUR_CLIENT_SECRET'
export SPOTIPY_REDIRECT_URI='http://localhost'
export SPOTIFY_USERNAME='YOUR_SPOTIFY_USERNAME'
```
* Find your spotify username [here](https://www.spotify.com/us/account/overview/)
* You can find the values for `SPOTIPY_CLIENT_ID` and `SPOTIPY_CLIENT_SECRET`
on the page for your application that you just created.
* Now you can run `spotsync -H my_mpd_host -P 6600 where `my_mpd_host` is the host you
are running MPD on (host defaults to `localhost` and port defaults to 6600 if you do not include it)
* You can find your spotify username [here](https://www.spotify.com/us/account/overview/)
* Now you can run `spotsync` with your `.env` file sourced (e.g. `source .env`)
* You will be prompted to grant permission to the app, once that's done, it
will cache the credentials locally and you should be able to just run
spotsync.

Loading…
Cancel
Save