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)



- [Ad0] - 2011-08-13 00:07

Is it possible to use the addon binaries in a PVR build at approximately the same date (merged from same commit)? Saw on the commits that spotifyxbmc has been separated completely into addons now?


- akezeke - 2011-08-13 19:09

abandonow Wrote:Ah, okay. I guess thats good. One step closer.

Do you have any idea why there is a connection problem, afaik I have no problems with the box. I use blockcontrol/moblock, but have opened up for spotify servers (93.182.8.0/24 and 78.31.8.0/2) and port (4070). I have also tested turning off blockcontrol, but it makes no difference (so the bug lies elsewhere). The box is also used as seedbox (torrent).

I launched xbmc today, and spotyxbmc worked. I went through comparing playlists with the spotify client (os x) and spotyxbmc. Every playlist was there. Restarted xbmc, and it was gone again.

How do I set "thumb isLoaded" to true? I've been poking around in your code, but I dont have the programming skills to do it without help. Smile

Btw. here is all my installed packages, if that is helping:
https://gist.github.com/1142670

Thanks again. Smile

I pushed some fixes, please try if it works better now, still works here Smile


- akezeke - 2011-08-13 19:13

[Ad0];861340 Wrote:Is it possible to use the addon binaries in a PVR build at approximately the same date (merged from same commit)? Saw on the commits that spotifyxbmc has been separated completely into addons now?

No spotyxbmc has not been seperated to an addon... yet. The code is better encapsulated to make way for the remake into an addon that will begin soon.

But if you want to use spotyxbmc with the pvr-branch its not that hard, download the pvr branch and the spotyxbmc branch. Create a diff between spotyxbmc and original xbmc master. Apply the diff to the pvr-branch (manually is safest)

There might even be a clever git trick to do it automatically since both branches has the same origin but I don't now how to do it. Someone else perhaps?

Edit:
Tried with this from inside the spotyxbmc2 dir

git remote add pvr git://github.com/opdenkamp/xbmc.git
git fetch pvr
git merge pvr/master

I'v got only one merge conflict and that is in the settings.cpp, the video and music extensions, edit it manually and make sure that .spotify is still in the music part and .pvr is in the video.

Then just mark the confict as solved and build it. worked for me.


/David


- abandonow - 2011-08-14 15:53

@akezeke
I tested your new build now, and it works everytime. A little loading time entering toplists, playlists, radio etc., but no more than ~1min.

Let me know if you want log-files, etc.

It still get "Segmentation fault" when exiting, but that you allready know.

Great work! Smile


- dallasnights - 2011-08-14 15:58

Hi all is there a version for ATV yet that works

Thanks all


- akezeke - 2011-08-14 16:15

abandonow Wrote:@akezeke
I tested your new build now, and it works everytime. A little loading time entering toplists, playlists, radio etc., but no more than ~1min.

Let me know if you want log-files, etc.

It still get "Segmentation fault" when exiting, but that you allready know.

Great work! Smile

Good to hear, is the loading time shorter after a while or is it always long loading times?

Yes please send me a log!

/David


- abandonow - 2011-08-14 16:30

It's only the first time you enter the menu item, and as far as I can see the loading time depends on amount and connection (i.e turning off other bandwith use speeds up the process).

Logfiles (terminal output and crashlog):
https://gist.github.com/1144917


- abandonow - 2011-08-14 17:45

It looks like xbmc is crashing after ~30 - 60 min watching video or listening to music.

Crashlogs (one for video and one for music):
https://gist.github.com/082e3063c3ab1342be95


- akezeke - 2011-08-14 21:16

abandonow Wrote:It looks like xbmc is crashing after ~30 - 60 min watching video or listening to music.

Crashlogs (one for video and one for music):
https://gist.github.com/082e3063c3ab1342be95

I have had it running all day without any crash, I bet it has something to do with the playlist updating code, can you please share the last 10-20 lines or so from the terminal when a crash like this happens?


- abandonow - 2011-08-14 21:53

Sure. I have two console output from crashes. Smile

https://gist.github.com/67075d1e0f3154aa4b9a
https://gist.github.com/745081e87ebdbfb86876