[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
- akezeke - 2010-11-16 00:35
Glad you got it working, regarding the playlist crash it might be because of offline files, I have not implemented any handling for those since that feature appeared after spotyxbmc was written. I will look into it someday.
- momoski - 2010-11-16 00:45
Another thing that causes a crash. When searching for an artist. When clicking on the artist, the albums are supposed to be displayed. Instead you see Browsing albums for a few seconds. This is the case for both artists with a lot of albums and not so many albums. Might be the same thing that goes wrong with the playlists.
Quote:NOTICE: Spotifylog: 22:44:08.373 I [file_streamer_simple.cpp:753] Request for file ebf6e4066694079f87112b6f9d7402af6ea3b6b0 complete (code: 0)
and another line found, which I think is the one that causes the trouble. Maybe this can help:
Quote:DEBUG: DialogProgress::StartModal called
Searching for a track goes OK.
- Puffytroll - 2010-11-16 04:03
Thanks for the help everyone! I will try to compile tomorow. If it fails this time, I just wait until a stable version is released, and uses a normal spotify client via the Executor plugin
If beta testers or anything like that is needed, I will be glad to help!
- akezeke - 2010-11-16 08:50
If you are using 0.0.3 that crash is caused by a bug in the library, there is a workaround fix presented in spotinterface.cpp.
At line 420 there is instructions how to enable it, just comment and uncomment a few lines and you should be fine!
- momoski - 2010-11-16 14:40
Just to make sure before I start compiling:
line 427 remains commented, and all other lines further down the code remain unchanged as well?
UPDATE: Can confirm this is correct. However a new minor issue has occured:
The albums are now retrieved without crashing. But I think since tracks are used to get the albums, the albums are repeated. Example: Search for Michael Jackson go into artists, select Michael Jackson, retrieves 4424 albums, because each album is repeated the number of times that it has in tracks, so 10 times the original thriller album. Is there another line that is supposed to handle that?
- akezeke - 2010-11-16 15:15
Yes, uncomment line 427 and 429 aswell, and you need a matching } further down at the for loop end
- akezeke - 2010-11-16 15:18
and there is probably an other linet where tempalbum =spAlbum, dont have the source here
- soder - 2010-11-16 15:26
I still haven't tried all this, but I have a question.
I have always used the Ubuntu PPAs (precompiled builds) and will continue to do so.
But can I in some way build my own version of XBMC with Spotify, and then just move some of them files to my downloaded PPA version?
- momoski - 2010-11-16 21:08
I really don't know. My base installation was the XBMCFreak Live CD based on version 10 beta 2. I believe that one installation also uses the PPA thingy (sorry dont know all the terminology). When looking into the xbmcfreak forum I found out you can build it yourself. I guess the answer is yes. As far as I can tell from what I did, everything remained the same, meaning my ftstab file (with my local ntfs shares) is still there, my wifi settings are still there, the only thing changed is the spotify in the music library. Which I like very very much.
- momoski - 2010-11-17 20:15
Question about the workings of libspotify in XBMC.
If an album is added to the library, is it only added to the XBMC library? Can it also be added to a new Spotify playlist?
Can a single track be added to the library?
Are spotify playlists manipulated in anyway? E.g. can a playlist be created, tracks added to it, etc.?
I guess the current answer is no. But in the api.h I see there are functions to manipulate the playlist. Is this not implemented by choice?
On the spotify github I see there is also a spotify playlist api (https://github.com/spotify/playlist-api) with restful function calls. Is it an idea to start developing a plugin or add-on using that api instead of the lib, or is that api not sufficient enough?
I am sorry if my questions don't make any sense. I do know how to code using c-sharp well, if I can do some proof of concept on this I am willing to put some time in it. Unfortunately I cannot program in C or C++.