• 1
  • 133
  • 134
  • 135
  • 136(current)
  • 137
Beta Spotify for Kodi
(2024-09-12, 17:21)enzo5 Wrote: I’ve created a new Spotify add-on for Kodi using the Web API, offering full features like library browsing and playlist editing. It’s in beta and available on my Kodi repo. Now using librespot, it supports local playback on Windows, Linux, MacOS, and Raspberry Pi 2/3. Spotify Premium is required, and Pi 1/Zero isn’t supported.

Hi @enzo5,

Where can I find your repo?
Thanks.
Reply
(2024-09-26, 15:26)glk1001 Wrote: Hi mollyrocco, Yes the log show access token expired. I'm afraid I can't explain that - I know for me using Ubuntu 24.04, I have no need to re-authenticate. Does anyone else have access token expired problems?

many thanks for your reply
Reply
Glk1001, thanks so much for coming back to me on this issue. I tried making the suggested changes, but it didn't work unfortunately. Do i need to literally write "view mode = 54" (or whichever number is the right ID)? Or just the number? Or something else?
Reply
I want to thank glk1001 for the work that must have gone into making the Spotify ADDON work with Kodi Omega. I run Windows 11 on a desktop PC (Media Center), Kodi 21.1, and Windows 11. After minimal tweaks it is working very well. Even Artist Slideshow is working very nicely. What I had to do to get authenticity working was to change Kodi to Window mode instead of Full Screen mode. Then one Window runs the official Spotify App and the 2nd Window runs your latest version of Spotify. When it told me to run an official copy of Spotify I simply brought up the 1st Window installed the official Spotify scrolled the devices list until I found Kodi-Spotty, clicked on it and I was in! So easy even I could do it. Oh and click on “OK” in the 2nd Window to finish up. You can then go back and run Kodi in Full Screen mode.
Reply
StevieB, I just put the number 54 for each of the views settings and my playlist layout changed. I'm not sure if 54 is specific to my skin or not. Try experimenting with different numbers.
Reply
Heart 
Thank you glk1001 for the work you have put in to this! Your work is appreciated.
Reply
First of all, thanks a lot for your extraordinary work ! Keep going on Wink

Maybe I'm missing something, or not...

My conf :
Kodi Omega 21.1 on Pi 4 with Libreelec 12.0.1
Got premium Spotify account with official Spotif App on Android.

Install successfully "plugin.audio.spotify-1.3.12.zip" on Pi 4.
Go to the plugin and clic on "Authenticate the plugin".
A message invites me to launch my Spotify App and then go back to clic OK.
I go on my Android Spotify App to connect Kodi (a song is currently playing)-> I can see "Spotty-Kodi" on remote device and clic on it.
My android Spotify App says the connection is OK and it is "now playing on the remote device" -> At this point, no sound anymore on my Android App, song is still playing, but still no sound on Kodi.
Last step : go back to the Kodi plugin an clic OK to the message to finalize the operation.
A new message indicates successfull authentication and show me my user ID. Clic OK.
At this point, nothing happens on Kodi, no sound, and in my Android Spotify App the connection to the remote Spotty-Kodi is lost and the song is not playing anymore.

I see in the "kodi.log" that the token is correctly generated, authentication is OK, and the file "credential.json" is present on Kodi.
But finally, at the end of the log, I can see "info <general>: JSONRPC Server: Disconnection detected".

Here is the full log : https://paste.kodi.tv/eqecusavov

Any idea ?

If I can help to get more traces or logs anywhere, or test something else, just tell me.

Anyone else got this behaviour ?

Thanks again for your help and your great job !
Reply
Based on what you've said you have authenticated the Kodi Spotify plugin OK. The android app is no longer needed. So go into the Kodi Spotify plugin and click the 'My Music' menu option, then choose 'Playlists'. You should then get a list of your Spotify playlists. Click one of them, then click on a track within. The track should start playing with sound.
Reply
Hi

Struggling to get this working on Win x64. Version 1.3.12.
Authentication is hit and miss but even when it authenticates and generates a credentials file Kodi crashes and then on restart it complains of no authentication.
In the logs I see:

2024-10-27 14:08:17.139 T:14088   error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'NoneType' object has no attribute 'insert'
                                                   Traceback (most recent call last):
                                                     File "C:\Users\drand\AppData\Roaming\Kodi\addons\plugin.audio.spotify\service.py", line 21, in <module>
                                                       MainService().run()
                                                     File "C:\Users\drand\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\main_service.py", line 57, in __init__
                                                       add_http_video_rule()
                                                     File "C:\Users\drand\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\main_service.py", line 36, in add_http_video_rule
                                                       if not video_player_setter.set_http_rule():
                                                     File "C:\Users\drand\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\http_video_player_setter.py", line 23, in set_http_rule
                                                       if self.__add_http_rule():
                                                     File "C:\Users\drand\AppData\Roaming\Kodi\addons\plugin.audio.spotify\resources\lib\http_video_player_setter.py", line 70, in __add_http_rule
                                                       rules.insert(0, new_rule)
                                                   AttributeError: 'NoneType' object has no attribute 'insert'
                                                   -->End of Python script error report<--
                                                   
2024-10-27 14:08:17.139 T:14088   debug <general>: CPythonInvoker::onExecutionDone(1, C:\Users\drand\AppData\Roaming\Kodi\addons\plugin.audio.spotify\service.py)
 
Full log: https://paste.kodi.tv/udovapanak.kodi

Grateful for thoughts.
Thanks
Andy
Reply
Hi,

There was an earlier post about this. With Windows Kodi I suspect there is an issue with the python XMLParser version (Windows Kodi uses
an older version of python than other Kodis) which cause the error you are getting. Here's the info from the previous post:

=====
On the first use of the Spotify plugin, the script tries to create a file called

"....../.kodi/userdata/playercorefactory.xml"

with the contents
 

<?xml version='1.0' encoding='utf-8'?>
<playercorefactory>
  <!-- This file created by the 'plugin.audio.spotify' addon. -->
  <rules name="system rules">
    <!-- This http rule added by the 'plugin.audio.spotify' addon. -->
    <rule name="http" protocols="http" player="VideoPlayer" />

    <rule name="httpx" protocols="httpx" player="VideoPlayer" />
  </rules>
</playercorefactory>

With your Kodi, something here is failing, possibly the script cannot create the file - not sure.
A workaround is to create the file yourself with the above contents. The script should then find it and continue without error.
Reply
Thanks. That fixed it. I did already have a playercorefactory.xml - does the script try to amend??
Reply
Yes, it makes sure you have the line

<rule name="http" protocols="http" player="VideoPlayer" />
Reply
Thanks for making this plugin available. Before finding and trying this pluin, I was incredule that nobody had come up with a way to stream spotify from the mobile to Kodi. Streamling devices these days allow hooking via bluetooth but that doesnt appear to be an option. So this plugin at least allow you to play your playlists. I think it would have been good if there was a way to simply control the Spotify streaming directly from the mobile. I take it there is not way to use the plugin in such a way?
Reply
Hello trilobite,

I have written an add-on that just does that: controlling Spotify playback through Kodi from a Spotify app. My add-on requires that librespot and ffmpeg are installed on the system on which it runs. You can find it here: https://github.com/henri-funck/service.l...ot_connect.

I do not want to hijack this thread more than I just did, so I invite you to discuss my add-on on github, as issues or pull requests.
Reply
Does this work on CoreElec and if yes how do I install the connect service?

It's playing but no audio and can't pause/stop in Kodi.
My logs are full of rtp errors.
Reply
  • 1
  • 133
  • 134
  • 135
  • 136(current)
  • 137

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