Kodi Community Forum
Beta Spotify for Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: Beta Spotify for Kodi (/showthread.php?tid=265356)



RE: Spotify for Kodi - User 224999 - 2017-06-03

(2017-06-03, 12:57)Blarre72 Wrote: Ok, I'm back with a clean install on my Android box with Kodi Jarvis and most current version pf the Spotify plugin. I still get errors in th log when starting and browsing my Spotify library.

Please test with version 1.1.10, there's was another typo.
If you have issues with 1.1.0 please provide me your full kodi logfile please so I can follow what's going on.

Please note that for Android, the playback is handled by the Android spotify app and not Kodi or the addon.
So, the Kodi addon for Spotify should be able to control any Spotify app/device by using the Connect protocol.

Note that I'm still working on getting the Kodi OSD to show up when a connect device is playing the audio instead of Kodi itself.


RE: Spotify for Kodi - Blarre72 - 2017-06-03

Ok, I was using version 1.1.9 I think. I'll check for the newer one then and report back again. I'm not entirely sure about the technical stuff you are taking about. Is there some setting I need to make the control work?


RE: Spotify for Kodi - BrendenCA - 2017-06-03

Tried with the 1.1.10 version still getting a error.

When I click on spotify it opens up the settings of the addon, clicking ok just takes me to a empty directory

16:39:46.853 T:1534931872 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 13] Permission denied
16:39:46.982 T:1534931872 WARNING: Previous line repeats 2 times.
16:39:46.982 T:1534931872 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
16:39:46.991 T:1135801248 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
16:39:47.014 T:1339028384 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 13] Permission denied
16:39:47.014 T:1339028384 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
16:39:47.016 T:1214251936 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
16:39:47.023 T:1214251936 WARNING: plugin.audio.spotify --> Exception in webservice ! --> [Errno 98] Address already in use
16:39:47.043 T:1534931872 NOTICE: plugin.audio.spotify --> Launching system-default browser
16:39:47.044 T:1534931872 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
16:39:47.051 T:1339028384 NOTICE: plugin.audio.spotify --> Launching system-default browser
16:39:47.051 T:1339028384 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
16:39:49.461 T:1610552224 NOTICE: Previous line repeats 4 times.
16:39:49.461 T:1610552224 ERROR: GetDirectory - Error getting
16:39:50.052 T:1534931872 ERROR: Previous line repeats 3 times.
16:39:50.052 T:1534931872 NOTICE: plugin.audio.spotify --> Waiting for authentication token...


RE: Spotify for Kodi - User 224999 - 2017-06-03

(2017-06-03, 13:12)BrendenCA Wrote: Tried with the 1.1.10 version still getting a error.

1) Restart your android box
2) Fill in your credentials in the settings screen that pops up.
3) The browser should be launched with a prompt to connect your spotify account to the addon.
4) The addon should be working now.
Note: make sure that you have the Spotify app installed on your Kodi box.

Built-in playback is NOT supported on Android or iOS.
On those platforms it's all relying completely on the native Spotify apps on the device.


RE: Spotify for Kodi - BrendenCA - 2017-06-03

This isn't on android; its on libreelec on the rpi


RE: Spotify for Kodi - User 224999 - 2017-06-03

(2017-06-03, 13:28)BrendenCA Wrote: This isn't on android; its on libreelec on the rpi

Sorry, I mixed up 2 posts. You should be able to get it working with version 1.1.10.
EDIT: Hmmm, now that I see your log I have another fix.
Prepare for version 1.1.11 ;-)


RE: Spotify for Kodi - jocus - 2017-06-03

(2017-06-03, 12:10)jocus Wrote:
(2017-06-03, 10:10)marcelveldt Wrote: OK, thanks. That was the missing piece in the puzzle. I will review my architecture detection code...

EDIT: Found a typo in the code. Version 1.1.9 should be available on the repo within a few minutes, please have a test with that.

Update 1.1.9 is still not available. I'm currently running 1.1.8.

Tested with 1.1.10. I'm still having the same issues. This is now in the log (after reboot):

13:33:46.654 T:1830810528 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 13] Permission denied
13:33:47.077 T:1830810528 WARNING: plugin.audio.spotify --> Exception in utils ! --> [Errno 13] Permission denied
13:33:47.077 T:1830810528 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
13:33:47.113 T:1676350368 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
13:33:48.551 T:1830810528 NOTICE: plugin.audio.spotify --> Launching system-default browser
13:33:48.551 T:1830810528 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
13:33:50.364 T:1659573152 NOTICE: Previous line repeats 1 times.
13:33:50.651 T:1830810528 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
13:33:51.651 T:1830810528 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
13:33:56.172 T:1962566096 NOTICE: Previous line repeats 4 times.
13:35:55.324 T:1676350368 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'spotipy.client.SpotifyException'>
Error Contents: http status: 401, code:-1 - https://api.spotify.com/v1/me/player:
No token provided
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/player_monitor.py", line 47, in onPlayBackStarted
current_playback = self.sp.current_playback()
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 916, in current_playback
return self._get("me/player", market = market)
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 148, in _get
return self._internal_call('GET', url, payload, kwargs)
File "/storage/.kodi/addons/plugin.audio.spotify/resources/lib/spotipy/client.py", line 126, in _internal_call
headers=r.headers)
SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/me/player:
No token provided
-->End of Python script error report<--
13:35:55.715 T:1676350368 NOTICE: plugin.audio.spotify --> Waiting for authentication token...


RE: Spotify for Kodi - User 224999 - 2017-06-03

(2017-06-03, 13:40)jocus Wrote: Tested with 1.1.10. I'm still having the same issues. This is now in the log:

See my comments above, I missed another spot. Version 1.1.11 is now on the repo.


RE: Spotify for Kodi - BrendenCA - 2017-06-03

Version 1.1.11 giving a error;

17:18:46.697 T:1370485664 WARNING: plugin.audio.spotify --> Exception in utils ! --> argument of type 'NoneType' is not iterable
17:18:46.841 T:1370485664 WARNING: Previous line repeats 2 times.
17:18:46.841 T:1370485664 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
17:18:46.845 T:1324589984 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
17:18:46.879 T:1676698528 WARNING: plugin.audio.spotify --> Exception in utils ! --> argument of type 'NoneType' is not iterable
17:18:46.879 T:1676698528 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
17:18:46.882 T:1281545120 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
17:18:46.903 T:1281545120 WARNING: plugin.audio.spotify --> Exception in webservice ! --> [Errno 98] Address already in use
17:18:46.928 T:1370485664 NOTICE: plugin.audio.spotify --> Launching system-default browser
17:18:46.929 T:1370485664 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
17:18:46.971 T:1676698528 NOTICE: plugin.audio.spotify --> Launching system-default browser
17:18:46.972 T:1676698528 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
17:18:53.281 T:1701790624 NOTICE: Previous line repeats 12 times.
17:18:53.281 T:1701790624 ERROR: GetDirectory - Error getting
17:18:53.962 T:1370485664 ERROR: Previous line repeats 3 times.
17:18:53.962 T:1370485664 NOTICE: plugin.audio.spotify --> Waiting for authentication token...


RE: Spotify for Kodi - jocus - 2017-06-03

(2017-06-03, 13:50)BrendenCA Wrote: Version 1.1.11 giving a error;

17:18:46.697 T:1370485664 WARNING: plugin.audio.spotify --> Exception in utils ! --> argument of type 'NoneType' is not iterable
17:18:46.841 T:1370485664 WARNING: Previous line repeats 2 times.
17:18:46.841 T:1370485664 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
17:18:46.845 T:1324589984 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
17:18:46.879 T:1676698528 WARNING: plugin.audio.spotify --> Exception in utils ! --> argument of type 'NoneType' is not iterable
17:18:46.879 T:1676698528 NOTICE: plugin.audio.spotify --> Failed to detect architecture or platform not supported !
17:18:46.882 T:1281545120 NOTICE: plugin.audio.spotify --> Audio proxy started on port 52308
17:18:46.903 T:1281545120 WARNING: plugin.audio.spotify --> Exception in webservice ! --> [Errno 98] Address already in use
17:18:46.928 T:1370485664 NOTICE: plugin.audio.spotify --> Launching system-default browser
17:18:46.929 T:1370485664 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
17:18:46.971 T:1676698528 NOTICE: plugin.audio.spotify --> Launching system-default browser
17:18:46.972 T:1676698528 NOTICE: plugin.audio.spotify --> Waiting for authentication token...
17:18:53.281 T:1701790624 NOTICE: Previous line repeats 12 times.
17:18:53.281 T:1701790624 ERROR: GetDirectory - Error getting
17:18:53.962 T:1370485664 ERROR: Previous line repeats 3 times.
17:18:53.962 T:1370485664 NOTICE: plugin.audio.spotify --> Waiting for authentication token...

I'm having the same messages with 1.1.11


RE: Spotify for Kodi - BrendenCA - 2017-06-03

I think i figured out whats wrong

https://github.com/marcelveldt/plugin.audio.spotify/blob/master/resources/lib/utils.py#L405

Line 405, stderr should be stdout

Works fine after that


RE: Spotify for Kodi - Blarre72 - 2017-06-03

Good news! I upgraded to version 1.1.11 and rebooted my box to be sure. It all seems to work now! I'm currently playing one of my lists. I'll let it play for a couple of hours to be sure...

However, as you said, there currently is no OSD or now playing interaction. But you are working on that?

Good work so far! Smile


RE: Spotify for Kodi - User 224999 - 2017-06-03

(2017-06-03, 14:19)BrendenCA Wrote: I think i figured out whats wrong

Thanks for the catch!

New version 1.1.12 will be available in a few minutes which includes this fix.
So, now we have the addon confirmed working on Windows, Linux x86, Linux arm, MacOS and Android !


RE: Spotify for Kodi - mazeeff - 2017-06-03

"Song Radio" is fabulous! Seems to play forever, if I understand it correctly. Is there any way to apply this to "Artist Radio"? Thanks for all the effort.


RE: Spotify for Kodi - jocus - 2017-06-03

(2017-06-03, 15:06)marcelveldt Wrote: Thanks for the catch!

New version 1.1.12 will be available in a few minutes which includes this fix.
So, now we have the addon confirmed working on Windows, Linux x86, Linux arm, MacOS and Android !

Thanks I can confirm it now works on my Raspberry with Libreelec 8.0.2!! Laugh Music