• 1
  • 127
  • 128
  • 129
  • 130
  • 131(current)
Beta Spotify for Kodi
I tend to agree there is not much overlap with Spotify for Kodi plugin and Spotify connect. The Spotify for Kodi plugin is a Spotify client that uses Kodi menus to navigate a Spotify account and plays chosen tracks using the Spotty (librespot) binary. Whereas a Spotify connect plugin would be more like a headless server.

The older version of Spotify for Kodi that had experimental Spotify connect functionality significantly complicated the plugin code mainly because two quite separate things were trying to be supported.

Perhaps a better approach would be to have a separate plugin for Spotify connect.
Reply
(2024-02-12, 12:39)glk1001 Wrote: Perhaps a better approach would be to have a separate plugin for Spotify connect.

FWIW I wouldn't mind that🤷‍♂️ But it's your time and work, I'll take whatever I can get Wink Thanks
Reply
(2024-02-12, 12:39)glk1001 Wrote: Perhaps a better approach would be to have a separate plugin for Spotify connect.

Probably a stupid question, but can we somehow "extract" the librespot add-on that comes with LibreELEC and use with "normal" Kodi (in my case just running on Windows 10)
Reply
Tracks Frequently Skip to Next Shortly After Starting.
I'm experiencing an issue with the Spotify addon on Kodi where tracks frequently skip to the next one shortly after they begin playing. This problem occurs randomly but consistently across different tracks and playlists, making it challenging to listen to a full song without interruptions. There are no error messages displayed, and my internet connection is stable, which suggests the issue might be related to the addon or its integration with Spotify.
If helpful, I am willing to share the Kodi logs for further investigation.
I would like to conclude by expressing my gratitude to glk1001 for your ongoing maintenance of the Spotify addon for Kodi. Your efforts are greatly appreciated.
Reply
Getting this error upon installation of latest version:

Code:
2024-02-22 16:14:30.964 T:300      info <general>: CAddonMgr::ADDON::CAddonMgr::FindAddon: plugin.audio.spotify v1.3.9 installed
2024-02-22 16:14:31.084 T:5848     info <general>: plugin.audio.spotifyConfusedervice:<module>: Python version: 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)].
2024-02-22 16:14:31.085 T:5848     info <general>: plugin.audio.spotifyConfusedervice:<module>: Python exe: C:\Program Files\Kodi 21\kodi.exe.
2024-02-22 16:14:31.125 T:11580 warning <general>: CGUIMediaWindow::OnMessage - updating in progress
2024-02-22 16:14:31.223 T:5848     info <general>: plugin.audio.spotifyConfusedervice:<module>: Platform: Windows-10-10.0.19045.
2024-02-22 16:14:31.898 T:5848     info <general>: plugin.audio.spotify:main_service:__init__: Spotify plugin version: 1.3.9.
2024-02-22 16:14:31.932 T:5848     info <general>: plugin.audio.spotifyConfusedpotty_helper:__get_spotty_path: Spotty architecture detected. Using spotty binary 'C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\deps/spotty\windows\spotty.exe'.
2024-02-22 16:14:31.934 T:5848    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:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\service.py", line 21, in <module>
                                                       MainService().run()
                                                     File "C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\main_service.py", line 65, in __init__
                                                       add_http_video_rule()
                                                     File "C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\main_service.py", line 39, in add_http_video_rule
                                                       if not video_player_setter.set_http_rule():
                                                     File "C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\http_video_player_setter.py", line 23, in set_http_rule
                                                       if self.__add_http_rule():
                                                     File "C:\Program Files\Kodi 21\portable_data\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<--
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
(2024-02-22, 17:20)ashlar Wrote: Getting this error upon installation of latest version:

Code:
2024-02-22 16:14:30.964 T:300      info <general>: CAddonMgr::ADDON::CAddonMgr::FindAddon: plugin.audio.spotify v1.3.9 installed
2024-02-22 16:14:31.084 T:5848     info <general>: plugin.audio.spotifyConfusedervice:<module>: Python version: 3.8.15 (default, Oct 17 2022, 02:39:57) [MSC v.1929 64 bit (AMD64)].
2024-02-22 16:14:31.085 T:5848     info <general>: plugin.audio.spotifyConfusedervice:<module>: Python exe: C:\Program Files\Kodi 21\kodi.exe.
2024-02-22 16:14:31.125 T:11580 warning <general>: CGUIMediaWindow::OnMessage - updating in progress
2024-02-22 16:14:31.223 T:5848     info <general>: plugin.audio.spotifyConfusedervice:<module>: Platform: Windows-10-10.0.19045.
2024-02-22 16:14:31.898 T:5848     info <general>: plugin.audio.spotify:main_service:__init__: Spotify plugin version: 1.3.9.
2024-02-22 16:14:31.932 T:5848     info <general>: plugin.audio.spotifyConfusedpotty_helper:__get_spotty_path: Spotty architecture detected. Using spotty binary 'C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\deps/spotty\windows\spotty.exe'.
2024-02-22 16:14:31.934 T:5848    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:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\service.py", line 21, in <module>
                                                       MainService().run()
                                                     File "C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\main_service.py", line 65, in __init__
                                                       add_http_video_rule()
                                                     File "C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\main_service.py", line 39, in add_http_video_rule
                                                       if not video_player_setter.set_http_rule():
                                                     File "C:\Program Files\Kodi 21\portable_data\addons\plugin.audio.spotify\resources\lib\http_video_player_setter.py", line 23, in set_http_rule
                                                       if self.__add_http_rule():
                                                     File "C:\Program Files\Kodi 21\portable_data\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<--

Nobody?
For troubleshooting and bug reporting please make sure you read this first (usually it's enough to follow instructions in the second post).
Reply
Hi,

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
  • 1
  • 127
  • 128
  • 129
  • 130
  • 131(current)

Logout Mark Read Team Forum Stats Members Help
Spotify for Kodi17