#Prerequisites
You need a PREMIUM account nothing else works since Spotify doesn’t allow ARM devices to use free accounts for streaming this is their policy so complain to Spotify and not the developers about free not working.
And if it doesn’t work after you followed these steps report it to appropriate developers, i can try to help but i only have limited time to do support work.
For Spotlight support use this link
https://bitbucket.org/re/spotlight/issues?status=new&status=open
For Pyspotify support use this link
#Step 1
You need to install dependencies in order for Spotlight to work you need to SSH your OSMC installation make sure SSH is enabled under MyOSMC settings then enter your credentials (defualt username is osmc and default password is osmc) if your having problems with this step google it this is pretty basic stuff.
##Installing from apt-repo
copy the content underneath as install_pyspotify.sh using nano or vim then do
sudo chmod +x install_pyspotify.sh
./install_pyspotify.sh
Or type in the commands separately in terminal
#!/bin/bash
if [ $USER != root ]; then
echo "run as a root"
exit 0
fi
apt-get update
apt-get install -y -qq python-spotify
exit
##Compiling from source
This is intended for more advanced users. Copy the content underneath as install_pyspotify.sh then do
sudo chmod +x install_pyspotify.sh
./install_pyspotify.sh
Or type in the commands separately in terminal.
#!/bin/bash
if [ $USER != root ]; then
echo "run as a root"
exit 0
fi
wget -q -O - http://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
echo "deb http://apt.mopidy.com/ stable main contrib non-free" >> /etc/apt/sources.list
echo "deb-src http://apt.mopidy.com/ stable main contrib non-free" >> /etc/apt/sources.list
apt-get update
apt-get install -y -qq libspotify-dev python-dev libffi-dev python-pip build-essential
pip install pyspotify
exit
#Step two
now its time to install the plugin for Kodi
[Download Repo][1][1]: https://bitbucket.org/re/spotlight/get/c045c7a8c338.zip
next step is to install spotlight it all depends on what hardware your running rpi 1 use the plain spotlight files if your running rpi 2 or other use the experimental arm7 version.
install the addon and follow these instructions to the letter don’t rush
Installation
Download zip file from Downloads section.
In XBMC go to System > Add-ons > Install from zip file.
Select downloaded zip and confirm.
Add-on will start running in background. Now you need to provide your Premium account credentials:
Go to Music > Music Add-ons.
Access Spotlight context menu (right click).
Select Add-on settings.
Enter credentials in Account category.
Edit playback settings if needed.
Restart XBMC!
Troubleshooting Vero users have reported that they need to apply a patch for it to work
This patch applies to plugin.audio.spotlight-1.2.0-armv7-experimental.zip not later versions…
#!/bin/bash
if [ $USER != root ]; then
echo "run as a root"
exit 0
fi
wget https://bitbucket.org/re/spotlight/issue-attachment/18/re/spotlight/1401991471.02/18/0001-Prepend-internal-libraries-to-the-python-path.patch
patch < 0001-Prepend-internal-libraries-to-the-python-path.patch
this small script should take care of that issue this patch might also apply to troubling rpi2 installations.
Finally go to Music > Music Add-ons > Spotlight and enjoy!
Spotlight service add-on uses port 8000 by default. If it is in conflict with your other servers you can change it in Advanced settings.
if it still doesnt work after this try changing port of the client under addon settings for Spotlight, dont forget to REBOOT after changing port.
This should cover how to install and get a working Spotify client for Kodi / OSMC
Tested on RPI2 / OSMC Final June version 2015
Should work on vero and rpi 1/2