2016-08-05, 17:04
There is a way to get authenticated without a webbrowser installed on the computer. (My case: i'm using Vera 2, and don't have kodi installed on another computer.).
The idea is to get the url called by the webbrowser, and use SSH port redirection to play the authentication process through it.
The idea is to get the url called by the webbrowser, and use SSH port redirection to play the authentication process through it.
- ssh to the device from your current OS (works by default on OSX and Linux): Code:
ssh -L 52308:127.0.0.1:52308 IP_TO_YOUR_DEVICE
- on the device with Kodi, create a "fake" firefox script (sudo nano /usr/bin/firefox) with the content:
Code:#!/bin/bash
echo "$@" >> /tmp/ff
- make it executable: Code:
sudo chmod +x /usr/bin/firefox
- in Kodi, go on Music > Addons > Spotify. It will try to connect and wait the authentification.
- during the connection, look at the file in /tmp/ff, you'll see an url like Code:
https://accounts.spotify.com/authorize?scope=playlist-mo.....
- copy/paste the url into your webbrowser on your computer
- after accepting the authorization, the redirect failed for me. In the url, replace localhost with 127.0.0.1, press enter
- "You can now close this browser window.". You're done!