[WIP] XBMC + Spotify = True (an XBMC implementation that uses Spotify's official API)

  Thread Rating:
  • 9 Votes - 4.22 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
dallasnights Offline
Fan
Posts: 514
Joined: Jan 2011
Reputation: 0
Post: #371
where can i find the plugin version of spotify that works on XBMC on ATV2

Thanks all
find quote
Jackdaw Offline
Junior Member
Posts: 23
Joined: Aug 2006
Reputation: 0
Post: #372
Unfortunately the new version is crashing for me (Lucid 64 bit minimal install.) This happened as soon as I had finished the configuration screen settings. The cache setting is correct. The previous version before it became an add on worked fine. I can't work out
Here is the relevant part of my crash log:
23:28:34 T:140267043583936 M:2943758336 DEBUG: ExecuteXBMCAction : Translating ActivateWindow(MusicLibrary,Addons,return)
23:28:34 T:140267043583936 M:2943758336 DEBUG: ExecuteXBMCAction : To ActivateWindow(MusicLibrary,Addons,return)
23:28:34 T:140267043583936 M:2943758336 DEBUG: Activating window ID: 10502
23:28:34 T:140267043583936 M:2943758336 DEBUG: ------ Window Deinit (Home.xml) ------
23:28:34 T:140267043583936 M:2943508480 DEBUG: Adding spotify share
23:28:34 T:140267043583936 M:2943508480 DEBUG: ------ Window Init (MyMusicNav.xml) ------
23:28:34 T:140267043583936 M:2943508480 INFO: Loading skin file: MyMusicNav.xml
23:28:34 T:140267043583936 M:2941476864 DEBUG: Adding spotify share
23:28:34 T:140267043583936 M:2941476864 DEBUG: Load MyMusicNav.xml: 157.26ms
23:28:34 T:140267043583936 M:2941476864 DEBUG: Alloc resources: 164.09ms (160.44 ms skin load)
23:28:34 T:140267043583936 M:2941476864 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/audio/)
23:28:34 T:140267043583936 M:2941476864 DEBUG: ParentPath = [addons://sources/audio/]
23:28:34 T:140267043583936 M:2941476864 WARNING: GetLabel - Unknown nodetype requested 0
23:28:35 T:140267043583936 M:2943770624 DEBUG: SDLKeyboard: scancode: 74, sym: 0112, unicode: 0000, modifier: 0
23:28:35 T:140267043583936 M:2943770624 DEBUG: OnKey: down (f028) pressed, action is Down
23:28:35 T:140266772084480 M:2943770624 INFO: msg: PICTURE::LoadImage: Unable to open image: special://masterprofile/Thumbnails/f/fc1ecf1e.png Error: (2)
23:28:35 T:140266772084480 M:2943770624 ERROR: Texture manager unable to load file: special://masterprofile/Thumbnails/f/fc1ecf1e.png
23:28:35 T:140267043583936 M:2943770624 DEBUG: SDLKeyboard: scancode: 74, sym: 0112, unicode: 0000, modifier: 0
23:28:35 T:140267043583936 M:2943770624 DEBUG: OnKey: down (f028) pressed, action is Down
23:28:36 T:140267043583936 M:2943807488 DEBUG: SDLKeyboard: scancode: 24, sym: 000d, unicode: 000d, modifier: 0
23:28:36 T:140267043583936 M:2943807488 DEBUG: OnKey: return (f00d) pressed, action is Select
23:28:36 T:140267043583936 M:2943807488 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.music.spotyXBMC/)
23:28:36 T:140267043583936 M:2943807488 DEBUG: ParentPath = [addons://sources/audio/]
23:28:36 T:140266772084480 M:2943807488 DEBUG: StartScript - calling plugin spotyXBMC('plugin://plugin.music.spotyXBMC/','0','')
23:28:36 T:140266772084480 M:2943807488 INFO: initializing python engine.
23:28:36 T:140266772084480 M:2943807488 DEBUG: new python thread created. id=1
23:28:36 T:140266772084480 M:2943807488 DEBUG: WaitOnScriptResult - waiting on the spotyXBMC plugin...
23:28:36 T:140266613647104 M:2943807488 DEBUG: Thread XBPyThread start, auto delete: 0
23:28:36 T:140266613647104 M:2943807488 DEBUG: Python thread: start processing
23:28:36 T:140266613647104 M:2943553536 NOTICE: -->Python Interpreter Initialized<--
23:28:36 T:140266613647104 M:2943553536 DEBUG: Process - The source file to load is /usr/share/xbmc/addons/plugin.music.spotyXBMC/default.py
23:28:36 T:140266613647104 M:2943553536 DEBUG: Process - Setting the Python path to /usr/share/xbmc/addons/plugin.music.spotyXBMC:/home/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.6:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload:/usr/lib/python2.6/dist-packages:/usr/lib/pymodules/python2.6:/usr/lib/pymodules/python2.6/gtk-2.0:/usr/local/lib/python2.6/dist-packages:
23:28:36 T:140266613647104 M:2943553536 DEBUG: Process - Entering source directory /usr/share/xbmc/addons/plugin.music.spotyXBMC
23:28:36 T:140266613647104 M:2943553536 DEBUG: Instantiating addon using automatically obtained id of "plugin.music.spotyXBMC" dependent on version 2.0 of the xbmc.python api
23:28:36 T:140266613647104 M:2943553536 INFO: Scriptresult: Success
23:28:36 T:140266613647104 M:2943553536 INFO: Python script stopped
23:28:36 T:140266613647104 M:2943553536 DEBUG: Thread Python Thread 140266613647104 terminating
23:28:36 T:140266772084480 M:2943553536 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
23:28:36 T:140267043583936 M:2943553536 ERROR: GetDirectory - Error getting plugin://plugin.music.spotyXBMC/
23:28:36 T:140267043583936 M:2943553536 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.music.spotyXBMC/) failed
23:28:36 T:140267043583936 M:2943553536 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/audio/)
23:28:36 T:140267043583936 M:2943553536 DEBUG: ParentPath = []
23:28:36 T:140266631583488 M:2943553536 DEBUG: Thread Background Loader start, auto delete: 0
23:28:36 T:140266631583488 M:2943553536 DEBUG: Thread Background Loader 140266631583488 terminating
23:28:36 T:140267043583936 M:2943574016 WARNING: GetLabel - Unknown nodetype requested 0
23:28:36 T:140267043583936 M:2943574016 DEBUG: waiting for python thread 1 to stop
23:28:36 T:140267043583936 M:2943574016 DEBUG: python thread 1 destructed
23:28:36 T:140267043583936 M:2943574016 DEBUG: Activating window ID: 10502
23:28:36 T:140267043583936 M:2943574016 DEBUG: ------ Window Deinit (MyMusicNav.xml) ------
23:28:36 T:140267043583936 M:2943574016 DEBUG: Adding spotify share
23:28:36 T:140267043583936 M:2943574016 DEBUG: ------ Window Init (MyMusicNav.xml) ------
23:28:36 T:140267043583936 M:2943574016 INFO: Loading skin file: MyMusicNav.xml
23:28:37 T:140267043583936 M:2942312448 DEBUG: Adding spotify share
23:28:37 T:140267043583936 M:2942312448 DEBUG: Load MyMusicNav.xml: 149.59ms
23:28:37 T:140267043583936 M:2942312448 DEBUG: Alloc resources: 156.57ms (152.94 ms skin load)
23:28:37 T:140267043583936 M:2942312448 DEBUG: CGUIMediaWindow::GetDirectory (musicdb://spotify/menu/main/)
23:28:37 T:140267043583936 M:2942312448 DEBUG: ParentPath = [musicdb://spotify/menu/main/]
23:28:37 T:140267043583936 M:2942312448 DEBUG: Spotifylog: creating session
find quote
iMse Offline
Junior Member
Posts: 3
Joined: Aug 2008
Reputation: 0
Post: #373
I'm so glad that you´re working on this! I think it´s a must have for xbmc. Since Spotify have been around in europe for so long (end even longer in sweden) people doesnt really have that big of a music collection anymore. It´s all Spotify these days (atleast for me and the people I know).

Keep up the excellent work! Smile
find quote
The-Boxhead Offline
Donor
Posts: 942
Joined: May 2005
Reputation: 17
Location: Norway
Post: #374
akezeke Wrote:It seems that libspotify didn't get installed correctly. Try to reinstall it and also try to install to an other path with prefix=...

I tryed the instructions on a natty 64 and it works, don't know if anything is different with maverick.

I have just tried to make this work on my minimal lucid live install.

A couple of pitfalls i found:

When installing dependencies it fails due to the autopoint entry. As far as i see this package is not possible to install on my ubuntu lucid. Also because this fails it doesent install some of the other required dependencies so remove the autopoint entry from that line and you should be good.

Second problem was related to libspotify. After several atempts
i found in this thread a guy who installed libspotify with the following command:
sudo make install prefix=/usr/
Voila the build went on without errors Wink

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
find quote
The-Boxhead Offline
Donor
Posts: 942
Joined: May 2005
Reputation: 17
Location: Norway
Post: #375
So my new shiny spotified xbmc starts up fine.

However it seems to crash 90% of the time if i try to start
the spotify addon trough the music/addon browser. If i instead
go into the music library and choose spotify from there
it seems not to crash at all and i can do search and play songs
trough the top lists etc.

However if i try to enter any of my own playlists xbmc crashes and restarts
100% of the time.

This is my crashlog:
http://pastebin.com/7pgmHnHv

I'm gonna do some more research...

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
find quote
The-Boxhead Offline
Donor
Posts: 942
Joined: May 2005
Reputation: 17
Location: Norway
Post: #376
Okay some progress.

After having fixed wrong directory for the cahce the spotify
plugin does not crash any more.

However entering my own playlists usually makes xbmc crash. some playlists works some doesent.
As long as i can get a listing i can play all my music just fine.

From the crash logs it seems to crash generating thumbnails ?

http://pastebin.com/X9SR1ghW

Browsing the built in listings works fine without any hitches. Seems only to be some of my own playlists that fails.
Also as i was browsing trough the built in spotify playlists i monitored my set cache dir. It seems
that it stops caching all togheter ? after browsing trough alotta albums and playing random titles
my cache dir stays untouched and at the same exact size for all files and dirs. is this correct ?

EDIT:
After trying several of my playlists the crash logs seems to always fail when cahing thumbnails...

Run1:
00:17:22 T:11958080 M:1382592512 DEBUG: Spotifylog: fetching thumb
00:17:22 T:11958080 M:1382592512 DEBUG: Spotifylog: fetching thumb 2
00:17:22 T:11958080 M:1382592512 DEBUG: Spotifylog: fetching thumb 3
CRASH

Run2:
00:37:56 T:5281600 M:1390202880 DEBUG: Spotifylog: fetching thumb 2
00:37:56 T:5281600 M:1390202880 DEBUG: Spotifylog: fetching thumb 3
00:37:56 T:5281600 M:1390202880 DEBUG: Spotifylog: fetching thumb 4
CRASH

Run3:
00:39:07 T:83990336 M:1394450432 DEBUG: Spotifylog: fetching thumb
00:39:07 T:83990336 M:1394450432 DEBUG: Spotifylog: fetching thumb 2
00:39:07 T:83990336 M:1394450432 DEBUG: Spotifylog: fetching thumb 3
CRASH

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
(This post was last modified: 2011-07-25 00:42 by The-Boxhead.)
find quote
neoflex Offline
Senior Member
Posts: 120
Joined: May 2011
Reputation: 0
Post: #377
had the same issue, see http://github.com/akezeke/xbmc/issues/1
find quote
The-Boxhead Offline
Donor
Posts: 942
Joined: May 2005
Reputation: 17
Location: Norway
Post: #378
well today i flushed my old install and made a complete reinstall
back to regular nightly builds.

Seems this project is left dead due to work on a unified addon for spotify...

Would love to see spotify support coming though Smile

PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
find quote
mortstar Offline
Senior Member
Posts: 248
Joined: Aug 2010
Reputation: 3
Post: #379
The-Boxhead Wrote:well today i flushed my old install and made a complete reinstall
back to regular nightly builds.

Seems this project is left dead due to work on a unified addon for spotify...

Would love to see spotify support coming though Smile

I can't help you I'm afraid Boxhead, but for others poppin in to this thread. I can say that this is working well on my Win 7 - 64bit system.

[Image: watched-clearlogo.jpg]
find quote
sporadius Offline
Junior Member
Posts: 2
Joined: Jul 2011
Reputation: 0
Post: #380
Hello all,

I have compiled SpotyXBMC latest version on XBMC Live 10.1 succesfully. After that I ran this commands:

killall xbmc.bin
sudo make install prefix=/usr

The XBMC version is succesfully replaced. Unfortunately XBMC starts fine, but when I start spotyXBMC add-on XBMC crashes and restarts. The last message in the log is:

"creating session" from spotyxbmc

If I open a console screen with CTRL ALT F1 and login, killall xbmc.bin and run a xinit xbmc-standalone the spotyXBMC works flawlessly.

After investigation of cache folder it seems to be fine. Does anyone have a clue?
find quote
Post Reply