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)



RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - neoflex - 2012-07-21

excellent, thanks. akezeke merged it.
Did someone checked if the JSON interface still work with non spotify songs since the big merging?


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - thebearnecessit - 2012-07-26

(2012-07-05, 00:11)thebearnecessit Wrote: I am running xbmc eden on windows xp. Can someone help me with a question about how to get spotyxbmc2 working?

Will this work in principle?

1) Use the precompiled exe file to install spotyxbmc2 (the one from post 868 in this thread - http://forum.xbmc.org/showthread.php?tid=67012&page=22)
2) copy my current xbmc install over to my brand new spanking spotyxbmc2 install by using the "portable" switch trick.

Any help much appreciated.

Can anyone help me with my question quoted above?

I'm basically asking - how do i get spotyxbmc2 working on my windows xp system?
I'd like to use spotyxbmc2 in Eden because I have audio problems with any version after Eden.
Can i transfer all my settings and addons etc over to a fresh spotyxbmc2 instal (by using the /p switch perhaps?)


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Balthazar - 2012-07-28

I have compliled this before, but I just built a new box (AMD A8 running Ubuntu 12.04 64-bit if that matters) and I can't for the life of me get it to compile now. I am using the exact same procedure as before. Here is my output from sudo make install. Can one of you guys take a look and see if you see anything glaring that I am not seeing?

Thanks in advance!


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - lunapark - 2012-07-28

Where can I download this ad-on to my XBMC ?


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Balthazar - 2012-07-29

(2012-07-28, 21:04)Balthazar Wrote: I have compliled this before, but I just built a new box (AMD A8 running Ubuntu 12.04 64-bit if that matters) and I can't for the life of me get it to compile now. I am using the exact same procedure as before. Here is my output from sudo make install. Can one of you guys take a look and see if you see anything glaring that I am not seeing?

Thanks in advance!

Maybe this is a stupid question, but can I just copy the files created when I compiled it on my old box and put them on my new box? Does it need to be compiled on the machine it is going to run on?



RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - aarnes - 2012-07-29

Hi guys,

tried to read all 222 pages with posts but im note sure if the answer is posted yet:

Is there any Spotify client available for ATV2 and XBMC now?


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Balthazar - 2012-07-29

(2012-07-28, 21:48)lunapark Wrote: Where can I download this ad-on to my XBMC ?

This isn't a binary add on yet. You have to compile it yourself. See the first post for details.


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - dbaars - 2012-07-29

I succesfully compiled spotyxbmc together with xbmc-pvr by creating a patch with the script I found on https://github.com/tompen-/OpenELEC.tv/tree/master/packages/mediacenter/xbmc-rpi/spotify_patches (branch Eden) and applying it to the Eden-pvr branch of xbmc-pvr.

This works great except for the fact that it keeps flooding my xbmc.log like CRAZY. It looks like it never ends, is there any way to turn these debug messages off of fix what is wrong?

Code:
21:07:45 T:140407899936512   DEBUG: spotifylog: loading spArtist
21:07:45 T:140407899936512   DEBUG: Previous line repeats 139 times.
21:07:45 T:140407899936512   DEBUG: spotifylog: lower artist ref
21:07:45 T:140407899936512   DEBUG: Previous line repeats 139 times.
21:07:45 T:140407899936512   DEBUG: spotifylog: Populate starred albums and artists thread start
21:07:45 T:140407899936512   DEBUG: spotifylog: Don't Be Shy
21:07:45 T:140407899936512   DEBUG: spotifylog: Good Girl
21:07:45 T:140407899936512   DEBUG: spotifylog: Disco Romancing

This hapens a lot of times within one second and it never stops:

Code:
21:07:58 T:140407899936512   DEBUG: spotifylog: Populate starred albums and artists thread start
21:07:58 T:140407899936512   DEBUG: spotifylog: Don't Be Shy
21:07:58 T:140407899936512   DEBUG: spotifylog: Good Girl
21:07:58 T:140407899936512   DEBUG: spotifylog: Disco Romancing
...

Configure string: ./configure --enable-libusb --enable-afpclient
Libspotify version: libspotify-10.1.16-Linux-x86_64-release
Ubuntu 12.04 LTS (amd64) with custom kernel (3.4.6)

Code:
user@tvserver:~/src/spotyxbmc2$ uname -ar
Linux tvserver 3.4.6-030406-generic #201207191609 SMP Thu Jul 19 20:11:13 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux



RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - dbaars - 2012-07-29

(2012-07-29, 21:33)dbaars Wrote: I succesfully compiled spotyxbmc together with xbmc-pvr by creating a patch with the script I found on https://github.com/tompen-/OpenELEC.tv/tree/master/packages/mediacenter/xbmc-rpi/spotify_patches (branch Eden) and applying it to the Eden-pvr branch of xbmc-pvr.

This works great except for the fact that it keeps flooding my xbmc.log like CRAZY. It looks like it never ends, is there any way to turn these debug messages off of fix what is wrong?

Simple fix was compiling with --enable-debug=no, but maybe someone has to look into this issue so spotyxbmc users will not flood the spotify servers Wink

UPDATE: Master branch also has this problem, spits everything to STDOUT.


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Tompen - 2012-07-30

Hi dbaars, this is not a problem. It is working as designed. Let me explain:
In the spotyxbmc addon (same place you configure spotify username&password), there is a selection to output the spotify-related messages to a separate file.

These messages are only output when you run xbmc with debugging activated. The debug yes/no setting can be configured eiher inside XBMC.
Settings/System/Debugging. Or by the loglevel setting in your advancedsettings.xml file.
This file does not exist by default. It is advised to compile XBMC with --enable-debug=yes and turn off debugging in the gui (or the file) when it is not needed.
If debuggning does need to be enabled, you can select if you want the spotify messages in the xbmc.log or in a separate file. This selection is done in the spotyxbmc addon. You can also enable good looking artist fanart background from HTbackdrops in the addon.

On startup, spotyxbmc gets the information from spotify servers regarding all your starred songs, your playlists and the songs that are included in the playlists. So the messages should stop after a few minutes. The libspotify library creates a local cache on disk with much of this info to avoid asking spotify servers every time xbmc is started.

If you are using XBMC Eden, I recommend this patch for integration with PVR:
The patch you used had support for integration with AudioEngine. Audioengine does not exist in XBMC Eden.
Update: Sorry, I read too fast. if you created a patch by using the script with branch=Eden the Audoengine stuff is not included.



RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - dbaars - 2012-07-30

HI Tompen, thanks for your explanation. I am still wondering why it populates the starred albums and artists over and over again.
I looked into the code and it looks like the ArtistStore is not behaving as expected because it first loads several Artists (multiple loading spArtists messages) and then the artist gets deleted immediatly (getting multiple lower artist ref messages).

It is also possible that the thread is not detected properly and hence starts a new one, so there are just more and more and more threads doing the same thing. I'm going to look in the code further. Also I made some changes to make it work with the newest libspotify (12). Maybe I'll post a patch later.

UPDATE: I looked at the source code and then inspected the debug log, it seems that the "Populate starred albums and artists thread start" indeed never ends (no "Populate starred albums and artists thread done" message)


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Tompen - 2012-07-30

dbaars:
Please open a github issue report regarding "Populate starred albums and artists thread start never ends".
Please pastebin the xbmc.log, including the spotify messages. Then post the link.

Regarding libspotify 12, it would be great with help with improvement here on Github.



RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - eeyore - 2012-08-06


I just have a quick question - If I have an artist stored locally and stared on spotify with their music appear under the artist name in the library or will there be two listings? one with spotify music and one with local music?


RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - Christer K - 2012-08-21

Hi all.

I follwed the instructions that Gr8rtek wrote and I got stuck at #15

"15. Double-click the file named buildmingwlibs.bat"

The cmd window says " Path cannot be found"

I suppose I could change the path in the .bat, but I need to know what to insert

/Christer





RE: [WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API) - KRKA01 - 2012-08-21

(2012-08-21, 15:58)Christer K Wrote: Hi all.

I follwed the instructions that Gr8rtek wrote and I got stuck at #15

"15. Double-click the file named buildmingwlibs.bat"

The cmd window says " Path cannot be found"

I suppose I could change the path in the .bat, but I need to know what to insert

/Christer

Make sure you have downloaded and installed the Microsoft DirectX SDK that are mentioned in the prereq. and by the way, if you only are going to create an installer, you can skip step 14 - 16.

//Krister