Posts: 415
Joined: Dec 2015
Reputation:
9
Seems to work fine. Now it needs to use the connect login thing every time we start kodi, right?
Posts: 72
Joined: Jan 2023
Reputation:
14
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.
Posts: 415
Joined: Dec 2015
Reputation:
9
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.
Posts: 68
Joined: May 2023
Reputation:
1
2024-08-20, 11:17
(This post was last modified: 2024-08-20, 11:18 by mollyrocco. Edited 2 times in total.)
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
Posts: 72
Joined: Jan 2023
Reputation:
14
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?
Posts: 72
Joined: Jan 2023
Reputation:
14
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.
Posts: 72
Joined: Jan 2023
Reputation:
14
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.
Posts: 72
Joined: Jan 2023
Reputation:
14
And yes, the curl settings
Posts: 14
Joined: Sep 2019
Reputation:
1
0rphu
Junior Member
Posts: 14
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.
Posts: 72
Joined: Jan 2023
Reputation:
14
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.
Posts: 68
Joined: May 2023
Reputation:
1
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
Posts: 72
Joined: Jan 2023
Reputation:
14
OK. The plugin is working for other Win 11 users so there is hope.