[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 114 115 116 117 118 119 120 121 122 123
- abandonow - 2011-08-11 11:05
I got the source (as of one hour ago) and recompiled. I will not be able to test before I get home later today. All I have is ssh connection.
- abandonow - 2011-08-11 20:11
Okay, I've done some more testing.
This is hooked up to a 42" toshiba LCD tv with HDMI and S/PDIF to a Samsung surround system.
What I did, step by step:
And btw. I have NO starred songs in Spotify (according to the OS X Spotify client), and that should be correct since I haven't used that feature.
I don't understand enough to figure this out, so I hope this helps you akezeke
If you want me to test anything else, just ask.
- neoflex - 2011-08-11 20:24
I had the same segmentation fault problem and I solved it but I dont really know how. After tracking the pb a little bit I had the impression that it crash while loading the playlists. I removed some of them from my spotify account (among them all my local music playlists) and now it works.
Love the new version, I just miss the compatibility with the Json API, I can t acces my spotify albums through the web interface neither with the iPhone remotes app.
- abandonow - 2011-08-11 20:32
I have a lot of playlists (around 80-90), and some with nordic characters (ie. æøå), but I don't want to delete any of them.
- neoflex - 2011-08-11 21:04
if you set some of your playlists public and give me their spotify uri, I can test if I get a pb with them too.
- abandonow - 2011-08-11 21:27
Thanks for offering, but as you now know I have alot of playlists, so I dont really think that it is the best way. It's faster and easier to do that myself. But that will take alot of time, and time I dont have atm, so I'm hoping for an easier solution.
It's possible to create another premium spotify user, but I dont think I want to pay double quite yet either.
My best bet is that akezeke figures out something from my log files.
- akezeke - 2011-08-12 08:42
abandonow Wrote:I have a lot of playlists (around 80-90), and some with nordic characters (ie. æøå), but I don't want to delete any of them.
The nordic chars is not a problem, I have them in my lists to,
I think that the amount of laylists might be the problem, After looking at your logs it seems that you where to quick to give up, start it up and when the terminal is quiet, wait a couple of minutes more ...
How long does it take before it seems to be loaded? I guess I should add an option to disable playlist preloading
- abandonow - 2011-08-12 08:45
Maybe ~1 min.
I have let it sit for over an hour, but still nothing.
I have had some issues with xbmc freezing if left over night. But as you say, maybe it is the amount of playlists. But the weird thing is that it works sometimes – and I dont have to wait for a long time before it shows up.
- akezeke - 2011-08-12 10:10
abandonow Wrote:Maybe ~1 min.
Then the amount of playlists is not the problem, after looking at your logs I found this:
17:34:55.819 E [ap:3900] ChannelError(933, 1, get-image)
So it is some kind of connection error, as it seems when a channelError occurs the object that is waiting for a callback never receives it so the thumbnail in this case is sitting and waiting for the callback and will always say that it is not loaded, and then the entire spotify solution is "not ready" and nothing will show up anywhere.
One way you can try if this is the problem is to change the thumb isLoaded function to always return true, then there will be some thumbs not showing if you are to fast hitting the menus but try to see if the playlists loads as they should.
I will investigate how I can do something about this, maybe add a timer that stops waiting after a curtain amount of time or something...
I tried to add a lot of more playlists and I don't see this problem anyway... hm
I will redo the checks for readynes to allow interaction with spotify elements even if not everything is loaded, so in your case there might one or two playlists that never loads but you can use all the others anyway... I dont have much time now but I will look in to it soon.
- abandonow - 2011-08-12 20:41
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 (18.104.22.168/24 and 22.214.171.124/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.
Btw. here is all my installed packages, if that is helping: