• 1
  • 131
  • 132
  • 133(current)
  • 134
  • 135
  • 137
Beta Spotify for Kodi
Seems to work fine. Now it needs to use the connect login thing every time we start kodi, right?
Reply
Good to hear it's now working. From my experience authentication is a one time requirement. So once you've authenticated don't do it again and see if things still work.
Reply
In my case it keep asking, once you close the spotify app. But Im doing all in the same pc, not by lan how I think I read on github.
Reply
i am using win 11 kodi 20.5  , i have tried this  alot and it keeps failing with this error  addon.data.dir>/spotty-cache/credentials/json      is there a simple way to get this working many thanks
Reply
I'm testing the new test version on rpi 3b+. There's some improvement, but it requires disabling of caching i.e. buffermode 3 (I'm currently running it on nexus). There seem to be some other things in advancedsettings.xml to try, my current file looks like this
advancedsettings.xml:
<advancedsettings version="1.0">
<cache>
        <buffermode>3</buffermode>
</cache>
<network>
    <curlretries>2000</curlretries>
    <curlclienttimeout>0</curlclienttimeout>
</network>
</advancedsettings>

as it stands, the playback is still hit and miss, usually the first two tracks in playlist don't play to the end, but break after some seconds - but not always Now I waited a little while after kodi restart until the cpu quieted down a bit and the first track just plays. Afterwards some tracks play fine till the end, some have some hiccups in the middle, but usually resume. Usually when you skip a track, you are back to initial behavior

debug log

started fine, first 2 tracks, I skipped to next track manually at 11:44:15.052 and the stream broke down
Reply
All on one PC is still on the LAN. The authentication dialog is triggered if the plugin can't find the "credentials.json" file in the "<KODI_DIR>/userdata/addon_data/plugin.audio.spotify/spotty-cache" directory or if you press the 'Authenticate the plugin' menu option. If, when you're using the official Spotify app and you connect to 'Kodi-Spotty' device, and you don't get a successful authentication message then the login failed. If you get a successful message then the "credentials.json" will be created and should stay there between sessions. So once you've authenticated the first time you do not need to go into the 'Authenticate the plugin' option again. Are you skipping the 'Authenticate the plugin' option after you've done it once?
Reply
There's no simple way to do authentication. You need another official Spotify app to connect to the 'Kodi-Spotty' device while the Kodi 'Authenticate plugin' dialog box is open. Once you press connect in the the official app, then a 'credentials.json' file should be created inside Kodi and then pressing OK on the Kodi dialog box should work. Two things can go wrong: 1) there is an error causing 'credentials.json' to not be created; 2) 'credentials.json' is created but there is another authentication error further on.

So the best thing would be to show me the Kodi log to see if there are any clues.
Reply
With the hit and miss streaming on the Pi I'm not sure. I'm not that great when it comes to networking issues. Possibly some sort of timeout. Was it OK before the authentication changes?

Definitely experiment with buffering. The plugin uses the VideoPlayer to play the tracks (because it knows how to read https streams) if that helps.
Reply
And yes, the curl settings
Reply
hi i have tried this on win 11 and a mobile both conected to spotify website  but none will connect to kodi would my problem be internet security ?

https://paste.kodi.tv/xoluyayeve.kodi
Reply
I don't know if the playback issue was there, I haven't used kodi/spotify for quite some time. I don't even know the version I was using, only that it was from Marcelveldt's repo. With that version I had no issue, while it worked. Maybe it's related to change from cherrypy to bottle WSGIref, but it could be other things. But I think it might be a performance issue. I will try some other settings.
Reply
With win 11, it could be a firewall issue. When I tested the plugin on win 11,  a Windows firewall dialog popped up asking to allow the plugin through. I said yes and it worked.
Reply
many thanks for all your time , i switched all firewalls but no luck its a shame that they changed the app  now unsure where to go with this issue thanks
Reply
OK. The plugin is working for other Win 11 users so there is hope.
Reply
I found the issue with tracks terminating at random. I must admit I do not understand the code but by observing the behavior I came to a conclusion the buffering is able to work, because after a couple of failures I can stream fine. Log mentions a message 
Code:
Already streaming. Terminating current streamer.
During normal playback, this yields a response of nothing to terminate.
It only succeeds in terminating the stream at the beginning and this causes a problem in my case. I don't know why.
I commented out 
Code:
self.__terminate_streaming()
in 
Code:
http_spotty_audio_streamer.py
and the addon works perfectly now.
The problem is I do not understand why this part of the code is there, and if commenting it out can cause some other trouble.
Reply
  • 1
  • 131
  • 132
  • 133(current)
  • 134
  • 135
  • 137

Logout Mark Read Team Forum Stats Members Help
Spotify for Kodi17
This forum uses Lukasz Tkacz MyBB addons.