Kodi Community Forum

Full Version: Spotlight - yet another Spotify add-on
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
(2014-02-28, 14:23)mazkolain Wrote: [ -> ]
(2014-02-27, 13:48)arcticspace Wrote: [ -> ]It would be great if it could run, because I have tried the SpotiMC addon and it can't even start, even though I have followed every tip I can find. I also tried to run XSqueeze, so that I could run Spotify via Squeezebox, but that doesn't work either.

[...]

I run XBMC Gotham on the Boxee Box.
Boxee Box runs Linux, but due to some strange reason Python's platform detection routines won't identify it as such. The issue is on the underlying pyspotify-ctypes lib which fails to initialize due to this issue.

In order to fix this and make both Spotlight and Spotimc work on the Boxee Box, more environment information is needed about this platform. The following addon will print to the log file all the required (non sensitive) information to make the appropiate fixes:
https://github.com/mazkolain/script.sysi...master.zip

Ok, here's the output from sysinforeporter:

Code:
23:49:24 T:2973748112  NOTICE: **** BEGIN script.sysinforeporter DUMP ****
23:49:24 T:2973748112  NOTICE: [XBMC environment related info.]
23:49:24 T:2973748112  NOTICE: System.BuildVersion: 13.0-ALPHA12 Git:20140118-92146e8
23:49:24 T:2973748112  NOTICE: System.Platform.Linux: yes
23:49:24 T:2973748112  NOTICE: System.Platform.Linux.RaspberryPi: no
23:49:24 T:2973748112  NOTICE: System.Platform.Windows: no
23:49:24 T:2973748112  NOTICE: System.Platform.OSX: no
23:49:24 T:2973748112  NOTICE: System.Platform.IOS: no
23:49:24 T:2973748112  NOTICE: System.Platform.Darwin: no
23:49:24 T:2973748112  NOTICE: System.Platform.ATV2: no
23:49:24 T:2973748112  NOTICE: System.Platform.Android: no
23:49:24 T:2973748112  NOTICE: [Python environment related info.]
23:49:24 T:2973748112  NOTICE: os.name: posix
23:49:24 T:2973748112  NOTICE: sys.platform: Linux
23:49:24 T:2973748112  NOTICE: platform.python_version(): 2.7.2
23:49:24 T:2973748112  NOTICE: platform.uname(): (Linux, IntelCE, 2.6.28, #8 PREEMPT Wed Oct 12 07:18:29 EDT 2011, i686, )
23:49:24 T:2973748112  NOTICE: platform.architecture(): (32bit, )
23:49:24 T:2973748112  NOTICE: c_void_p size: 32
23:49:24 T:2973748112  NOTICE: **** END script.sysinforeporter DUMP ****
The error message I get when trying Search, Starred, and Playlists is:

"Errno 7 - no address associated with hostname."
(2014-02-28, 17:41)Dariusz Wrote: [ -> ]For Browse and Discover I don't see any libspotify support in API. Perhaps mazkolain will know if there is any hack to do this (for example via special search query?). These options seem to be implemented as Spotify apps.
You are right, there's no browse nor discover support in libspotify. Apart from that, the special search keywords are pretty basic:
https://support.spotify.com/us/learn-mor...ed-search1

They seem to be backed by a third party service called the EchoNest, which also seems to power the radio feature.

(2014-03-01, 00:52)arcticspace Wrote: [ -> ]Ok, here's the output from sysinforeporter:
This was helpful, thanks!
(2014-03-01, 13:54)arcticspace Wrote: [ -> ]The error message I get when trying Search, Starred, and Playlists is:

"Errno 7 - no address associated with hostname."

Could you please include logs from spotlight as well? The logs from platform check indicates that spotlight itself should detect the platform correctly. This might be something with pyspotify-ctypes or something different...
(2014-03-02, 22:49)Dariusz Wrote: [ -> ]Could you please include logs from spotlight as well? The logs from platform check indicates that spotlight itself should detect the platform correctly. This might be something with pyspotify-ctypes or something different...

Do you mean the xbmc.log file or is there a specific one for spotlight?
This is the log file for after I try to run Spotlight. I tried the Playlist option, then exited and copied the log file.

edit: don't inline huge logs on the forums please. Use pastebin or similar
(2014-03-04, 13:10)arcticspace Wrote: [ -> ]
(2014-03-02, 22:49)Dariusz Wrote: [ -> ]Could you please include logs from spotlight as well? The logs from platform check indicates that spotlight itself should detect the platform correctly. This might be something with pyspotify-ctypes or something different...

Do you mean the xbmc.log file or is there a specific one for spotlight?

I mean the the whole xbmc.log. In fact, the most interesting stuff is happening on XBMC startup. There must be some kind of exception fired...
Ok, thanks!

Here's the whole log file:

http://xbmclogs.com/show.php?id=143522
This is great!

Works fine for now. Is a bit slow.

What I'm currently missing is a sort function and when playlists are in a folder Spotlight shows a blank line.
(2014-03-05, 22:01)bvduijv Wrote: [ -> ]This is great!

Works fine for now. Is a bit slow.

What I'm currently missing is a sort function and when playlists are in a folder Spotlight shows a blank line.

Thx. Playlist folders are not supported yet but this support will be added.
2 Questions

- Why isnt it possible to use with a free spotify account? Since we can use it for free
- Does this mean, when i got to main menu xbmc, then chose music, then artist, i see al list of artist (with thumbs) ?
The same for albums (i see a list with coverart)
If so how is it populated? (only with starred albums/tracks or smth else?
(2014-03-05, 18:14)arcticspace Wrote: [ -> ]Ok, thanks!

Here's the whole log file:

http://xbmclogs.com/show.php?id=143522

Thanks!
Mikel fixed this in dependent library (pyspotify-ctypes) so we'll test in the upcoming release.
(2014-03-06, 15:53)Skank Wrote: [ -> ]2 Questions

- Why isnt it possible to use with a free spotify account? Since we can use it for free
- Does this mean, when i got to main menu xbmc, then chose music, then artist, i see al list of artist (with thumbs) ?
The same for albums (i see a list with coverart)
If so how is it populated? (only with starred albums/tracks or smth else?

Shank,

1. libspotify library (that comes from Spotify) is used under the hood. This library only works with Premium accounts. I guess Spotify uses this limitation to avoid playback on mobile or other than desktop devices without Premium. Otherwise, alternative apps would emerge that could be run on mobile with Free accounts.

2. I'm not sure if I understand this question. To access plugin you need to go to Music -> Music Add-ons -> Spotlight. Going to Music -> Albums / Artists means navigating through built-in menu and it will browse your defined music sources. Coverarts and thumbnails are downloaded using a configured scrapper. With Spotlight it is a little bit different because Coverarts and thumbnails come from the Spotify service.

Regards,
Darek
great add-on works fine with Gotham beta1
(2014-03-06, 18:23)Dariusz Wrote: [ -> ]
(2014-03-05, 18:14)arcticspace Wrote: [ -> ]Ok, thanks!

Here's the whole log file:

http://xbmclogs.com/show.php?id=143522

Thanks!
Mikel fixed this in dependent library (pyspotify-ctypes) so we'll test in the upcoming release.

Ok, great! Do you know when the next version is released?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21