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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: XBMC General Discussion (/forumdisplay.php?fid=6)
+--- Thread: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) (/showthread.php?tid=67012)



- stigroar - 2010-11-19 11:50

Puffytroll Wrote:You need to use nano instead of gedit.... Gedit needs a GUI to run.

nano ./xbmc/spotinterface.cpp

Thanks again, Puffytroll... I'm starting to feel quite stupid now. But how the heck to I add my API key to the file?!

I have received my key, but cannot find anywhere to type it..

EDIT: Since I have to leave for a few hours, I might as well ask about the next step immediately...
Quote:9. Install all XBMC dependencies listed in the corresponding readme file.
What is the corresponding readme file, and how do I install the XBMC dependencies?


- Puffytroll - 2010-11-19 14:13

Dependencies :
Code:
sudo apt-get build-dep xbmc

When you have opened the spotinterface.cpp file you just use the arrows to navigate up and down. There is a line near the top that say "INSTER KEY HERE". Remove that line, copy the key from Spotify's page, and paste it there Wink (Paste in Putty: right click)

It should look like this i think:

Code:
SpotifyInterface *g_spotifyInterface;

const uint8_t g_appkey[] = {
    0xE5,0xE5, 0xE5,0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5, 0xE5,  etc....
    };

const size_t g_appkey_size = sizeof(g_appkey);



- stigroar - 2010-11-19 15:09

[Image: spotinterface.jpg]

This is how my spotinterface looks like. No text to scroll through...


- Puffytroll - 2010-11-19 15:48

Then you eigther are in wrong directory or you havent downloaded and applied the patch


- stigroar - 2010-11-19 16:02

Ahhh.... Had forgot to enter the folder "trunk". Sorry. Have edited the file and am now running your dependencies code. Thanks again! Smile


- Puffytroll - 2010-11-19 16:26

Heh, no ploblem.

Just got it running aswell, by following Lordmozillas guide.

I can report some minor bugs:
- The thing that it finds all to many albums when searching after tracks.
- Some big playlists cause a segmentation fault.

else it works fine Wink


- stigroar - 2010-11-19 16:55

Step 13: sudo make install

Quote:xbmc@XBMCLive:~/temp/trunk$ sudo make install
[sudo] password for xbmc:
Copying XBMC binary to /usr/local/lib/xbmc/xbmc.bin
install: cannot stat `xbmc.bin': No such file or directory
make: *** [install-binaries] Error 1

See what's wrong?


- Puffytroll - 2010-11-19 17:06

Yes, something went wrong while compiling, so Xbmc isnt compiled yet


- stigroar - 2010-11-19 17:08

just do another "make" then? can i be in wrong folder or anything?


- Puffytroll - 2010-11-19 17:08

And I have found a strange bug. I dont know if it is more, but when I put this song:
Code:
spotify:local:Prezioso+Feat.+Marvin:Hit+Mania+Dance+Estate+2003:Voglio+Vederti+D​anzare:226
to a playlist and tries to open it in spotixbmc I get a segmentation fault...

Any ideas ? Tongue