Get SPOTIFY-CONNECT on your OSMC device, turning your TV or HiFi/Surround receiver into a Spotify player! This is cool, it works flawlessly for Spotify Premium users!
You simply use the Spotify app on your phone/laptop. Your OSMC device will appear as “Devices Availabe” and when you select it, it looks like this:
This solution will install Raspotify, which is based on LibreSpot.
Installing it automatically:
Use my autosetup.sh script. All you have to do is select Spotify and fill in the name you want to see (like “OSMC” in the screenshot below). It will automatically set the quality to the highest and add a service in MyOSMC so you can disable/enable Spotify with your TV remote (default = enabled).
Installing it manually:
The below is copy-pasted from Raspotify’s Readme on Github. These are the manual instructions (the autosetup.sh script just performs them for you). You can change quality and set device name manually.
Raspberry Pi
First add the repo and its GPG key:
curl -sSL https://dtcooper.github.io/raspotify/key.asc | sudo apt-key add -v -
echo 'deb https://dtcooper.github.io/raspotify jessie main' | sudo tee /etc/apt/sources.list.d/raspotify.list
Now Install package:
sudo apt-get update
sudo apt-get install apt-transport-https
sudo apt-get -y install raspotify
VERO
(29/1/2018) Good news, it IS working on Vero 4k!
You just have to install it very manually via SSH, downloading the .deb package yourself:
-
Download the latest .deb file for Raspotify:
wget https://dtcooper.github.io/raspotify/raspotify-latest.deb
-
Install it:
sudo dpkg -i /home/osmc/raspotify-latest.deb
-
Run this just to be sure all dependencies are met:
sudo apt-get install -f
Changing quality and device name
Edit the config file:
sudo nano /etc/default/raspotify
And change bitrate to 320. This will essentially give you Ogg Vorbis -Q6 which is Spotify’s Extreme setting and hardly distinguishable from FLAC.
Afterwards, restart the service:
sudo systemctl restart raspotify
Check if it is running well:
sudo systemctl status raspotify
LIMITATIONS
Spotify-Connect and Kodi run side-by-side. You could playback something in Kodi and Spotify at the same time. Always make sure you stop Spotify playback before you play something in Kodi! Otherwise, you might need to reboot to get audio working in Kodi.
Other issues
If you have issues that are NOT related to installation, don’t post here. Create an issue here:
Raspotify on GitHub or Librespot on GitHub.