Kodi Community Forum
[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Kodi related discussions (https://forum.kodi.tv/forumdisplay.php?fid=6)
+--- Thread: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) (/showthread.php?tid=67012)



- coendeurloo - 2011-09-01

Flanhare Wrote:No I think not. I think it will be months before we have a Spotify plugin, but i guess akezeke knows better.

Yes you should SSH to your HTPC. Follow the instructions by akezeke or you can try my script a few posts up :-)

Thanks for the reply! I'll try your script, because the linux instructions don't seem to work on XBMCLive, a lot of commands just don't work.


- coendeurloo - 2011-09-01

Flanhare Wrote:I have modified the nightly build script for XBMC found in this post to install and build everything needed for Spotyxbmc2 (credits to the original contributors). Hopefully this is of any help for beginners and maybe useful for old timers that just want to rebuild.

Basically it will install libspotify, get spotyxbmc2 from github, copy your appkey.h to the build dir, build xbmc and install.

Instructions
Any feedback is welcome. I admit I haven't tested it that much.

When I use your script, it does a lot of things, downloading and upgrading...but still no spotify to be seen in XBMCLive! Sad

I must admit that I haven't gotten an API key yet, since I don't want to buy a premium account untill I know if this works...is it an essential step?


- PsyDuck - 2011-09-02

Great add-on!!

There's a problem with certain characters in the password.

Had a password with 'รค' in it and that didn't work. Added the Logger output suggested earlier in this thread and the password printed had some garbage characters.
Changed the password and everything works fine.

Would be nice if you could add some gui-feedback when a connection/login fails.


- eversteegt - 2011-09-02

coendeurloo Wrote:When I use your script, it does a lot of things, downloading and upgrading...but still no spotify to be seen in XBMCLive! Sad

I must admit that I haven't gotten an API key yet, since I don't want to buy a premium account untill I know if this works...is it an essential step?

In the instructions, it clearly says you NEED a spotify premium account.....


- alex84 - 2011-09-02

Any brave soul that could help howto install this from an livecd install of xbmc would be mutch appriciated Smile


- solem - 2011-09-02

Is anyone using Opdenkamps XBMC+PVR build? Is it possible to have both PVR and Spotify?


The Script on regular Ubuntu-Xbmc installation - rich710 - 2011-09-02

Is it possible to use this script on a regular Ubuntu-Xbmc installation? Not XBMC Live? Or is it possible to edit by myself in a simple editor?
My knowledge is not big, I thought f.ex. replace "xbmc-live" with "xbmc" in some texteditor...

Thank you anyway for all efforts to help others..

//Richard

Flanhare Wrote:I have modified the nightly build script for XBMC found in this post to install and build everything needed for Spotyxbmc2 (credits to the original contributors). Hopefully this is of any help for beginners and maybe useful for old timers that just want to rebuild.

Basically it will install libspotify, get spotyxbmc2 from github, copy your appkey.h to the build dir, build xbmc and install.

Instructions
Any feedback is welcome. I admit I haven't tested it that much.



Word of Caution! - Gr8rtek - 2011-09-03

I have been reading and re-reading this thread for several days now, trying (as of yet unsuccessfully) to get Spotify working on my Windows 7 box. In reviewing my XBMC.log as well as the logs that others have posted, I noticed that if you post a log of your activity the first time you activate the SpotyXBMC plug-in, your Spotify username and password is visible for anyone willing to do some minor digging. Of course, most people following this thread and trying to get it working already have a premium account, but my experience has led me to find that there are some unscrupulous individuals out there that might do bad things with this information. If this is you, you might want to closely review the area immediately after:
Code:
Caching image 'C:\Program Files (x86)\XBMC\addons\plugin.music.spotyXBMC\fanart.jpg' as '7/786a1073.jpg' full size
16:28:38 T:214024    INFO: Caching image from: C:\Program Files (x86)\XBMC\addons\plugin.music.spotyXBMC\fanart.jpg to special://masterprofile/Thumbnails/7/786a1073.jpg
16:28:38 T:213088   DEBUG: Caching image 'C:\Program Files (x86)\XBMC\addons\plugin.music.spotyXBMC\icon.png' as '0/00a3d4e0.png' full size
16:28:38 T:213088    INFO: Caching image from: C:\Program Files (x86)\XBMC\addons\plugin.music.spotyXBMC\icon.png to special://masterprofile/Thumbnails/0/00a3d4e0.png

and

Code:
------ Window Init (DialogKeyboard.xml) ------
16:28:44 T:214192   DEBUG: SDLKeyboard: scancode: 22, sym: 0067, unicode: 0067, modifier: 0
16:28:44 T:214192   DEBUG: CApplication::OnKey: g (f047) pressed, trying keyboard action 61799

Hope this helps!


- Flanhare - 2011-09-03

alex84 Wrote:Any brave soul that could help howto install this from an livecd install of xbmc would be mutch appriciated Smile

Follow the instructions at https://github.com/akezeke/spotyxbmc2 or try my script http://forum.xbmc.org/showpost.php?p=876735&postcount=506.

In any case you need to SSH to your XBMCLive computer (google it).


- Flanhare - 2011-09-03

rich710 Wrote:Is it possible to use this script on a regular Ubuntu-Xbmc installation? Not XBMC Live? Or is it possible to edit by myself in a simple editor?
My knowledge is not big, I thought f.ex. replace "xbmc-live" with "xbmc" in some texteditor...

Thank you anyway for all efforts to help others..

//Richard
I can't test because I have no regular ubuntu installation. But I think it should work. The only lines in the script I can think of that does not work is "stop xbmc-live" and "start xbmc-live". You could try to change xbmc-live to just xbmc, but they are not really important, you can leave XBMC running while you run the script and just restart XBMC or reboot the machine if the script succeded.

Just try, it won't break your current XBMC-installation if the script fail, it will continue to work just fine.


- coendeurloo - 2011-09-03

eversteegt Wrote:In the instructions, it clearly says you NEED a spotify premium account.....

Allright, so I have to get an API key, make the file and...update the script?

Well, that's what I've done, got a premium account, made the appkey.h file, placed it in the root, updated the script...but it seems to have some problems finding the right directory. Here is a screenshot of the last lines of putty:

Image

I'm logged in as root, maybe that's the problem? Should I login as just 'xbmc' (normal user)?


- Flanhare - 2011-09-03

coendeurloo Wrote:Allright, so I have to get an API key, make the file and...update the script?

Well, that's what I've done, got a premium account, made the appkey.h file, placed it in the root, updated the script...but it seems to have some problems finding the right directory. Here is a screenshot of the last lines of putty:

Image

I'm logged in as root, maybe that's the problem? Should I login as just 'xbmc' (normal user)?
As the error message says, a library is missing. It is hard to tell which one, but open README.ubuntu file and check the requirements and manually do a apt.get install as stated in the file.

So there is a library missing in apt-get install line in the script.

EDIT: Yes, you should do everything as root.


- latigreplata - 2011-09-03

Hi

I just tried the script on my test-PC. it`s a live-xbmc installation. The script was unsuccessfull... It says something about a missing source. Can anyone help?

Here`s the end of the log:

Err http://ppa.launchpad.net maverick/main Sources
404 Not Found
Hit http://archive.ubuntu.com maverick-backports/universe i386 Packages
Hit http://archive.ubuntu.com maverick-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-updates/main i386 Packages
Hit http://archive.ubuntu.com maverick-updates/restricted i386 Packages
Err http://ppa.launchpad.net maverick/main i386 Packages
404 Not Found
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Hit http://archive.ubuntu.com maverick-updates/universe i386 Packages
Hit http://archive.ubuntu.com maverick-updates/multiverse i386 Packages
W: Failed to fetch http://ppa.launchpad.net/team-iquik/xbmc-stable/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/team-iquik/xbmc-stable/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package libgl-dev is a virtual package provided by:
E: Package 'libgl-dev' has no installation candidate
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/ppa.launchpad.net_team-iquik_xbmc-stable_ubuntu_dists_maverick_main_source_Sources - open (2: No such file or directory)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/ppa.launchpad.net_team-iquik_xbmc-stable_ubuntu_dists_maverick_main_source_Sources - open (2: No such file or directory)
mkdir: cannot create directory `/home/xbmc/setup': File exists
./sxgb.sh: line 48: git: command not found
make: *** lib/libnfs: No such file or directory. Stop.
./sxgb.sh: line 50: cd: /home/xbmc/setup/spotyxbmc2: Not a directory
./sxgb.sh: line 52: ./bootstrap: No such file or directory
./sxgb.sh: line 52: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** lib/addons/script.module.pil: No such file or directory. Stop.
make: *** No rule to make target `install'. Stop.
xbmc-live start/running, process 13414


- Flanhare - 2011-09-03

latigreplata Wrote:Hi

I just tried the script on my test-PC. it`s a live-xbmc installation. The script was unsuccessfull... It says something about a missing source. Can anyone help?

Here`s the end of the log:

Err http://ppa.launchpad.net maverick/main Sources
404 Not Found
Hit http://archive.ubuntu.com maverick-backports/universe i386 Packages
Hit http://archive.ubuntu.com maverick-backports/multiverse i386 Packages
Hit http://archive.ubuntu.com maverick-updates/main i386 Packages
Hit http://archive.ubuntu.com maverick-updates/restricted i386 Packages
Err http://ppa.launchpad.net maverick/main i386 Packages
404 Not Found
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net maverick/main i386 Packages
Hit http://archive.ubuntu.com maverick-updates/universe i386 Packages
Hit http://archive.ubuntu.com maverick-updates/multiverse i386 Packages
W: Failed to fetch http://ppa.launchpad.net/team-iquik/xbmc-stable/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/team-iquik/xbmc-stable/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
Package libgl-dev is a virtual package provided by:
E: Package 'libgl-dev' has no installation candidate
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/ppa.launchpad.net_team-iquik_xbmc-stable_ubuntu_dists_maverick_main_source_Sources - open (2: No such file or directory)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Could not open file /var/lib/apt/lists/ppa.launchpad.net_team-iquik_xbmc-stable_ubuntu_dists_maverick_main_source_Sources - open (2: No such file or directory)
mkdir: cannot create directory `/home/xbmc/setup': File exists
./sxgb.sh: line 48: git: command not found
make: *** lib/libnfs: No such file or directory. Stop.
./sxgb.sh: line 50: cd: /home/xbmc/setup/spotyxbmc2: Not a directory
./sxgb.sh: line 52: ./bootstrap: No such file or directory
./sxgb.sh: line 52: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** lib/addons/script.module.pil: No such file or directory. Stop.
make: *** No rule to make target `install'. Stop.
xbmc-live start/running, process 13414
Hmm XBMC-Live is based on Lucid (10.04), not Maverick (10.10). You are running Maverick and that ppa has no sources for Maverick. I can't make the script work for another version of ubuntu right now. I suggest you follow the instructions that akezeke have written.


- alex84 - 2011-09-04

Flanhare Wrote:Follow the instructions at https://github.com/akezeke/spotyxbmc2 or try my script http://forum.xbmc.org/showpost.php?p=876735&postcount=506.

In any case you need to SSH to your XBMCLive computer (google it).

Thanks for helping.
Im well aware how to ssh to the box. The problem is when running " make install xbmc" command it wont go throw the command. I have tried countless times but cant get past even The bootstrap command. I think that this coul be an issue of the livexbmc not having all the full blown features. I was hoping someone with more knowledge could try the install on a liveinstall of xbmc. I have almost given up since running an full ubuntu / linux install is not anoption for my ion pc. If anyone can confirm your script or other install way that works on the xbmclive version i happily test it.