Beta - Spotify for Kodi

  Thread Rating:
  • 11 Vote(s) - 4.55 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
marcelveldt Offline
Skilled Skinner
Posts: 7,959
Joined: Jul 2014
Reputation: 318
Location: The Netherlands
Post: #766
(2017-05-14 17:16)Wild Penguin Wrote:  Perhaps a recent API change (at Spotify server end) broke the plugin?

The plugin just stopped working for me, too, sometime during the last few weeks (I don't use it regularly). Haven't investigated further (such as: what is in the logs etc.).

Not that I'm aware of. Can you share the log?



Verzonden vanaf mijn iPhone met Tapatalk
find quote
Wild Penguin Offline
Junior Member
Posts: 25
Joined: Jul 2013
Reputation: 0
Post: #767
Hi Marcel,

This is what I get in the log trying to use Spotify plugin (ignore the first lines, they are caused by another PVR plugin).

Code:
20:05:30.839 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_1154212838.tbn
20:05:30.840 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_1862376869.tbn
20:05:30.841 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_149394382.tbn
20:05:30.842 T:2842686368 WARNING: CreateLoader - unsupported protocol(pvr) in pvr://channels/tv/Kaikki kanavat/pvr.hts_1103753277.tbn
20:05:35.767 T:2948588448   ERROR: GetDirectory - Error getting
20:05:37.639 T:2591028128   ERROR: Previous line repeats 3 times.
20:05:37.640 T:2591028128  NOTICE: Spotify --> Your platform (armv7 System.Platform.Linux)
20:05:39.663 T:2591028128  NOTICE: Spotify --> Starting background service...
20:05:39.793 T:2591028128  NOTICE: Spotify --> Checking remembered_user ..
20:05:39.804 T:2591028128  NOTICE: Spotify --> Cached session found
20:05:39.819 T:2579469216  NOTICE: Spotify --> logged in: 0
20:05:45.101 T:2591028128  NOTICE: Spotify --> starting proxy at port 8090
20:05:45.103 T:2591028128  NOTICE: Spotify --> Setting callback ..
20:05:45.105 T:2591028128  NOTICE: Spotify --> Obtaining user token ..
20:05:45.106 T:2591028128  NOTICE: Spotify --> Encoding header ..
20:05:45.317 T:2600567712   ERROR: warning:couldn't read token from cache
20:05:45.317 T:2600567712  NOTICE: Spotify --> WebService - start helper webservice on port 52308
20:05:46.359 T:2600567712   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'module' object has no attribute 'Dialog'
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/plugin.audio.spotify/plugin.py", line 3, in <module>
                                                Main().main()
                                              File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1146, in main
                                                if self.checkLoginDetails():
                                              File "/storage/.kodi/addons/plugin.audio.spotify/resources/plugincontent.py", line 1074, in checkLoginDetails
                                                self.token = util.prompt_for_user_token(username)
                                              File "/storage/.kodi/addons/plugin.audio.spotify/resources/libs/spotipy/util.py", line 69, in prompt_for_user_token
                                                if xbmc.Dialog().yesno("No webbrowser detected", "The webbrowser could not be auto detected. Do you have one installed ?"):
                                            AttributeError: 'module' object has no attribute 'Dialog'
                                            -->End of Python script error report<--

This is on Kodi 17.2 (LibreELEC). I have made authentication previously without any error messages.

The behaviour of the UI is: wheneven I try to open the plugin, it will display the "busy" animation (two concentric non-continuous circles rotating on the default skin), and a generic error (look in the logs for more information). It will display the busy animation indefinitely - I've waited 30minutes right now.

I was assuming there is something wrong because of other recent reports above, but my log file seems similar to only Gracus's report.
find quote
marcelveldt Offline
Skilled Skinner
Posts: 7,959
Joined: Jul 2014
Reputation: 318
Location: The Netherlands
Post: #768
Good news everybody, Spotify enhanced their API with connect control.
This means I am working on changes to the addon so it will act more like the other spotify clients.
Within a few days I think I can publish some first version
find quote
xbmosx Offline
Member
Posts: 71
Joined: Jun 2014
Reputation: 0
Post: #769
This is fantastic news!!! Thanks for sharing your work with us and all your efforts. This is going to be great.
find quote
MarcelMAH Offline
Junior Member
Posts: 5
Joined: Sep 2016
Reputation: 0
Location: The Netherlands
Post: #770
(2017-05-21 01:19)marcelveldt Wrote:  Good news everybody, Spotify enhanced their API with connect control.
This means I am working on changes to the addon so it will act more like the other spotify clients.
Within a few days I think I can publish some first version
Can we also have Spotify connect support using these updated API's?
(This post was last modified: 2017-05-22 20:21 by MarcelMAH.)
find quote
marcelveldt Offline
Skilled Skinner
Posts: 7,959
Joined: Jul 2014
Reputation: 318
Location: The Netherlands
Post: #771
(2017-05-22 19:52)MarcelMAH Wrote:  
(2017-05-21 01:19)marcelveldt Wrote:  Good news everybody, Spotify enhanced their API with connect control.
This means I am working on changes to the addon so it will act more like the other spotify clients.
Within a few days I think I can publish some first version
Can we also have Spotify connect support using these updates API's?


Yes


Verzonden vanaf mijn iPhone met Tapatalk
find quote
Kociszz Offline
Junior Member
Posts: 1
Joined: May 2017
Reputation: 0
Post: #772
Maybe new API is compatible with ARM?
I really want to have Spotify on Vero 4k
find quote
infinity85 Offline
Senior Member
Posts: 162
Joined: Jul 2015
Reputation: 9
Location: Germany
Post: #773
(2017-05-23 18:58)Kociszz Wrote:  Maybe new API is compatible with ARM?
I really want to have Spotify on Vero 4k
You could try the new librespot spotify connect service addon for your Vero: https://forum.libreelec.tv/thread/8438-librespot-addon/

not sure what platform vero 4k is. Is it arm 32bit, or arm 64bit aka aarch64? If it is armhf/arm 32bit, then the RPi2/3 addon would work on it probably. At least it does on LibreELEC for 32bit arm devices.
find quote
infinity85 Offline
Senior Member
Posts: 162
Joined: Jul 2015
Reputation: 9
Location: Germany
Post: #774
(2017-05-21 01:19)marcelveldt Wrote:  Good news everybody, Spotify enhanced their API with connect control.
This means I am working on changes to the addon so it will act more like the other spotify clients.
Within a few days I think I can publish some first version
Hey, great work on this addon Smile

Have you noticed that there is also a reverse engineered spotify client api (open source), which already works quite great for spotify connect:
The original open source development: https://github.com/plietar/librespot
The first works-out-of-the-box service addon for LibreELEC: https://forum.libreelec.tv/thread/8438-librespot-addon/

Perhaps this would also be something interesting, as it does not require to input user:pass to get a connection. It just works like any Spotify Connect Device in a Wifi Network, hence anybody on a party can connect to it and push songs onto the client without bothering with authentification and so on.
find quote
marcelveldt Offline
Skilled Skinner
Posts: 7,959
Joined: Jul 2014
Reputation: 318
Location: The Netherlands
Post: #775
(2017-05-24 01:14)infinity85 Wrote:  Have you noticed that there is also a reverse engineered spotify client api (open source), which already works quite great for spotify connect:
The original open source development: https://github.com/plietar/librespot
The first works-out-of-the-box service addon for LibreELEC: https://forum.libreelec.tv/thread/8438-librespot-addon/

Perhaps this would also be something interesting, as it does not require to input user:pass to get a connection. It just works like any Spotify Connect Device in a Wifi Network, hence anybody on a party can connect to it and push songs onto the client without bothering with authentification and so on.

Yes, I'll be using that implementation for playback.
The changes in the webapi were also needed to control spotify players.

If you're just seeking for a Spotify connect add-on to stream music from your phone, you'd better go with the libreElec librespot add-on.
I'm focusing on playback and control of Spotify on Kodi itself
find quote
xbmosx Offline
Member
Posts: 71
Joined: Jun 2014
Reputation: 0
Post: #776
(2017-05-24 07:32)marcelveldt Wrote:  If you're just seeking for a Spotify connect add-on to stream music from your phone, you'd better go with the libreElec librespot add-on.
I'm focusing on playback and control of Spotify on Kodi itself

Maybe a stupid question, but is it possible to use this add-on with a a regular Kodi installation that is not libreelec (e.g. Kodi & Ubuntu) ?
find quote
infinity85 Offline
Senior Member
Posts: 162
Joined: Jul 2015
Reputation: 9
Location: Germany
Post: #777
(2017-05-24 08:12)xbmosx Wrote:  
(2017-05-24 07:32)marcelveldt Wrote:  If you're just seeking for a Spotify connect add-on to stream music from your phone, you'd better go with the libreElec librespot add-on.
I'm focusing on playback and control of Spotify on Kodi itself

Maybe a stupid question, but is it possible to use this add-on with a a regular Kodi installation that is not libreelec (e.g. Kodi & Ubuntu) ?
Why don't you just try it and report? Big Grin
find quote
xbmosx Offline
Member
Posts: 71
Joined: Jun 2014
Reputation: 0
Post: #778
(2017-05-24 10:16)infinity85 Wrote:  
(2017-05-24 08:12)xbmosx Wrote:  
(2017-05-24 07:32)marcelveldt Wrote:  If you're just seeking for a Spotify connect add-on to stream music from your phone, you'd better go with the libreElec librespot add-on.
I'm focusing on playback and control of Spotify on Kodi itself

Maybe a stupid question, but is it possible to use this add-on with a a regular Kodi installation that is not libreelec (e.g. Kodi & Ubuntu) ?
Why don't you just try it and report? Big Grin

Yeah, I did in the meanwhile. Probably not a big surprise, but dependencies are not met regarding OS.
find quote
infinity85 Offline
Senior Member
Posts: 162
Joined: Jul 2015
Reputation: 9
Location: Germany
Post: #779
Hmm, that's unfortunate, but as you are on a non-libreelec system, you can try to install those dependencies. Libreelec does not allow that, so you'd have a bigger issue if you encountered this on LibreELEC rather than on a Ubuntu system or so.
find quote
xbmosx Offline
Member
Posts: 71
Joined: Jun 2014
Reputation: 0
Post: #780
well, the problem with that is, that the reported missing dependency is libreelec itself.
find quote
Post Reply