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)



- akezeke - 2011-08-14

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

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

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

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

Sure. I have two console output from crashes. Smile

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


- akezeke - 2011-08-14

abandonow Wrote:Sure. I have two console output from crashes. Smile

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

It seems that you are not running the latest version anymore Smile I did some changes to the playlist reloading code today, and also the thumb loading. You should see a lot of messages like this: "Thumb already in XBMC cache, no need to download again"

So please build it again and try again when you have time!

But again you have this two bad boys in the log:
17:13:12.179 E [ap:3900] ChannelError(696, 1, get-image)
17:13:42.861 E [ap:3900] ChannelError(2, 1, get-image)
argh...


- abandonow - 2011-08-14

I just checked you source, and saw it was updated more recent thant my latest build, so I'm actually building it as we speak. Smile


- olejon - 2011-08-16

If i understand this correctly, I have to compile the whole XBMC program to get this working? Is it not possible to just compile the add-on and add it to my existing XBMC install (from official PPA)?


- abandonow - 2011-08-16

@olejon: Yes, but thats pretty easy. If you are unsure how, you can read howto at spotyxbmc2 github.

@akezeke: The last version seems (from 14/8) stable now. No more crashes listening to music (spotify) or playing video. Going to compile the latest version now. Smile


- solem - 2011-08-17

I can't get it to work. At first I had the same problems as abandonow, so I got the latest build last night and tried again. XBMC starts fine, but when I try to start Spoty nothing happens. In console everything seems healthy enough and I wait for it to go quiet before I try to start the addon, but there's no response. Exiting XBMC is also clean and no error-logs are created.

akezeke: Is there any other useful information I can hand over to you?


- olejon - 2011-08-17

abandonow Wrote:@olejon: Yes, but thats pretty easy.

Ok. Yes I have much experience with compiling, but my media center is not the fastest in the world (Intel Atom), and I would prefer not to recompile with every new version of XBMC (using stable PPA). Maybe I should check out that ccache thing.

But, is there any chance of having a plugin/program in the future that doesn't require compiling XBMC from scratch? Like we have a YouTube plugin etc.


- akezeke - 2011-08-17

solem Wrote:I can't get it to work. At first I had the same problems as abandonow, so I got the latest build last night and tried again. XBMC starts fine, but when I try to start Spoty nothing happens. In console everything seems healthy enough and I wait for it to go quiet before I try to start the addon, but there's no response. Exiting XBMC is also clean and no error-logs are created.

akezeke: Is there any other useful information I can hand over to you?

Hi,

I seems that you are trying to start the addon, that will do nothing, Instead go to the normal music section and try the menu entries there. Take a look at the video here to see what is supposed to show up where.

If you are actually not seeing anything in the music sections the terminal printouts is interesting for me to see.

Good luck!


- solem - 2011-08-17

@akezeke: Yes, that was it! Big Grin

And it worked great as long as I kept XBMC running, but now when I restart everything will just freeze Sad

Edit: Nevermind, it's working again. Great work btw Big Grin


- solem - 2011-08-18

Another thing; can this be compiled for XBMCLive following a guide like this:

http://forum.xbmc.org/showthread.php?tid=89817


- TheeDude - 2011-08-19

Hello!

I just tried to build spotyxbmc, and the plugin seems to work, except that it can't login to my spotify account.
Here comes the output from the terminal when I start xbmc.

Quote:jonas@HTPC:~$ xbmc
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
bgthread OnStartup
Creating session
04:47:41.256 I [offline_authorizer.cpp:170] Unable to login offline: no such user

Logged in, returning
bgthread OnStartup done
04:47:41.256 I [ap:1372] Connecting to AP ap.spotify.com:4070

04:47:41.295 I [ap:922] Connected to AP: 78.31.12.7:4070

04:47:41.362 E [ap:3672] Connection error: 401

error while logging in!
Logged out callback!

Any idea?

Thanks for a really nice plugin/addon so far!