[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)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
- jaaps - 2010-05-24 14:17
Kitof Wrote:I made some changes to be able to compile spotyXBMC under linux with libspotify 0.4.
Anyone got this working? I have tried applying the patch to several svn revisions and got it succesfully compiled and XBMC starts but after entering the spotify login details XBMC just crashes.
- drvdijk - 2010-05-27 02:29
jaaps Wrote:Anyone got this working? I have tried applying the patch to several svn revisions and got it succesfully compiled and XBMC starts but after entering the spotify login details XBMC just crashes.
First I tried to patch the current svn trunk with the .diff, which obviously failed. However, release 28310 failed as well oddly enough. So now I got the 9.11 source as promoted on the download page on the main xbmc page. The diff doesn't patch automatically on that one either.
So I merged the diff manually (no that was not fun), and am now compiling. Manually merging was doable, however in the xbmc/FileSystem/Directory.cpp stuff was changed too much to add the spotify line. Well, let's see how it works without it!
Compiling this heap of source probably takes a while on this Asrock ION. I'll post back after I get some shuteye.
Edit: eyes didn't shut, but got blown open by an error:
Edit 2: Right, so now I got all there errors gone Basically, namespaces changed considerably in the Directory.h and MusicDatabaseDirectory.cpp files (in xbmc/FileSystem). Also, the CacheThumb method in the xbmc/Picture.h file was removed, so I removed references from spotinterface.cpp to them (lets see how that goes..) make now flew by the spotinterface.cpp compilation, and is now again continuing with much more work. To be continued!
- akezeke - 2010-05-28 15:39
As many of you have notice, the precompiled versions of spotyXBMC is not working anymore. It is due to the update from spotify.
Until the new addon system is fully implemented in XBMC I will not do any coding on this. In the future I will do a rewrite of the project and it will be reborn as a plugin... hopefully
However you can use spotifys official lib as suggested, I have updated the source so it will apply on the current svn.
- jaaps - 2010-05-29 01:04
Still having problems getting it running.
I checked out the SVN of XBMC and your code on github. Patch went succesfully. Then I installed libspotify and edited spotinterface.h to point to libspotify. Also filled my api key in the right place. Run some steps and added -lspotify to LIBS
When compiling I got an error about api.h. So I installed the api.h from Kitof's github. Now everything was succesfully compiled. So I did a sudo make install and tried running XBMC. XBMC loads up fine and ask for spotify login details. But after entering the details XBMC crashes. Nothing really in xbmc.log.
Hope you can help me get this running.. I really want to.
- spark - 2010-05-31 21:00
My experience is identical to Jaap's. I'm also very interested in being able to use spotify from xbmc again (I used it previously on an older system with the precompiled binaries).
Is there any way to get this working again with recent sources?
- wido - 2010-06-13 21:13
I've had the same issue with XBMC under Ubuntu 10.04 (AMD64).
My XBMC crashed and the strace showed that it happened in libspotify.so
I tried several things, but wasn't able to resolve it, but then i got an idea, what if i enable the library mode before enabling Spotify?
So i disabled Spotify in advancedsettings.xml and then added some local MP3's into my library (I'm using MySQL as backend).
After my library was scanned i shutdown XBMC and enabled Spotify. And then, voila, XBMC started without any troubles and Spotify is working brilliant!
OS: Ubuntu 10.04 (AMD64)
XBMC: Revision 31058 (SVN)
Spotify: Using libspotify 0.4 with api.h from spotyxbmc
Btw, i had to manually apply the patch in "./project/VS2008Express/XBMC.vcproj" since automated patching failed.
Dharma - Talle - 2010-07-19 15:46
Since the new addonsystem is now done I wonder if ther will be a Spotify AddOn?
- akezeke - 2010-07-19 15:50
Yes there will be, but not until its possible to create addons in c++, might be sooner, or later...
- jaaps - 2010-07-19 16:05
Maybe you could create something like a HTTP Gateway to communicate with Python?
- akezeke - 2010-07-20 19:06
jaaps Wrote:Maybe you could create something like a HTTP Gateway to communicate with Python?
Guess I could but what´s the point when support for C++ addons are in the works, a solution without involving python suites this project better I think.