Prerequisites
- A Spotify account (free or premium) I've not tested with a free account, but according to spotify it should work.
- Spotify desktop app installed on same computer as you are going to use with MediaPortal
- Create an app at spotify, use this link: Dashboard | Spotify for Developers, you have to login.
- Click the "Create app" button.
- Give your Application a name, doesn't matter what.
- Set the Redirect URI to: http://localhost:5132/callback this is important that it is just like I wrote it.
- Check the Agree checkbox
- Click the "Save" button
- Save the Client ID and the Client secret, you will need these later
- Put the SpotyPortal.dll in the plugins\Windows folder in your MediaPortal folder
- Put the skin-files in the skin folder, I've only files for the StreamedMP skin, maybe some one can fix for some other skins
- Put SpotyPortal.html in "ProgramData\Team MediaPortal\MediaPortal\SpotyPortal"
- Start MediaPortal Configuration.
- Select Configuration for the SpotyPortal-plugin
- Put in the Client ID and Client secret you saved above.
- Press the "Authorize" button.
- Your web browser will open, login to Spotify.
- Accept the agreement.
- Close the web-browser when you get a page with the information that the authorazition is done. Hopefully after the update of this instruction it shall open that page. If that doesn't happen, but you got a tokens.json file in "ProgramData\Team MediaPortal\MediaPortal\SpotyPortal everything should be fine.
- Close the SpotyPortal configuration window.
- Close MediaPortal-configuration.
Version 0.2.0.0
- Added shuffle
- Added repeat
- Added SpotyPortal.html
- Added next song i the now playing overlay
- Made some changes to the code to make more stable
You can now start MediaPortal and start using the SpotyPortal plugin to listen to music from Spotify.
MediaPortal is not used to play the music, it only act as a remote to the Spotify app on your computer.
The first time you start it and the first time you select a playlist, it will take some time because it will download the covers for the playlists and then for all the songs in the playlist
All config information is stored in the SpotyPortal folder in your MediaPortal folder in APPDATA.
This includes your Client ID and Client Secret.
But I dont see any risks with that, because it is on your computer, so no one can get it except if they have access to your computer.
I'm sure there are some bugs and some more feature that can be implemented, but for now I think it is working quite good.
I've only used it with MP 1.25, so dont know if it will work with the current version.
When you exit the plugin, the music will stop and you will have to start it again when going in to the plugin again.
If you're going to use it with multiple instances of MP, you've to create one App for each of those instances.
Attachments
Last edited: