-
Notifications
You must be signed in to change notification settings - Fork 0
Spotify
Daniel Isenmann edited this page Feb 15, 2021
·
5 revisions
Covers supports Spotify integration and adds your albums from your Spotify library into Covers seamlessly. This page describes how to connect Covers with your Spotify account.
You need a Spotify premium account to stream music from Spotify over their API, so with the free account it won't work!
- the integration works only on a desktop PC, on Android or iOS there won't be any music streaming. This is because of a limitation of the Spotify API
- only albums which you have liked on Spotify (added in your Spotify library) will be displayed in Covers. More detailed, all albums listed here: https://open.spotify.com/collection/albums
Because your are using Covers on your own computer you have to create an own app in your Spotify account. Do the following:
- login into your Spotify account via your browser
- open the Spotify Developer Dashboard and login with the same credentials as in Spotify
- click on the button 'Create An App' on the upper right on your dashboard
- Add Covers as the app name, type any text you want as app description and check the two checkboxes below to accept the terms of service, click 'Create'
- after that click on 'Edit settings' on the upper right in the dashboard
- add as Redirect URI "http://localhost:5000/Spotify/Callback" and click 'Add'. IMPORTANT: Change 'localhost' with the IP address of your PC where Covers is running, also change port 5000 to the port you have specified in the appsettings.json file (can be found in the root directory of Covers) in the Kestrel section (default: 5000)
- save the settings (button on the bottom)
- on the left click on 'Show client secret'
- copy ClientID and ClientSecret to the appsettings.json file of Covers, there is a Spotify section
- copy also the redirect URI from step 6 into the appsettings.json file. It should look something like this:
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
}
}
},
"Spotify": {
"ClientID": "414ef7d7b942c48fe6e7a8b089c0c8",
"ClientSecret": "201c3d1df4ad1a4c83937cf99a6d9",
"CallbackUri": "http://192.168.1.22:5000/Spotify/Callback"
}
- save the appsettings.json file and start Covers
- point your browser to the Cover URL, in the above example http://192.168.1.22:5000 (default: http://localhost:5000)
- you should be redirected to Spotify and must login (if not already done), after that approve the app that it can access your data
- you will be redirected to the Covers overview page and your Spotify albums will be added