Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 15
  • 16
  • 17(current)
  • 18
  • 19
  • 20
Squeezebox for Kodi
(2020-11-16, 20:44)dajoe Wrote:
(2020-10-05, 16:31)kriznik Wrote:
(2020-09-15, 19:31)kriznik Wrote: I have exactly same issue when playing from LMS it stops after 2-3seconds
and in log a lot of demuxers

Code:
2020-09-15 12:43:02.751 T:139637611808512  NOTICE: plugin.audio.squeezebox --> play started by lms server
2020-09-15 12:43:02.998 T:139637628593920   ERROR: Init: Error creating demuxer
2020-09-15 12:43:03.031 T:139637628593920  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder pcm_s16le
2020-09-15 12:43:03.163 T:139638178051840  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms

just to head up for anyone who needs to solve this issue:
(tested on libreelec and regular kodi on linux machine as well)

you need to do two edits:

1:
.kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py
comment this section
Code:

def onPlayBackStopped(self):
   '''Kodi event fired when playback is stopped'''
    if self.is_playing:
        self.lmsserver.stop()
        log_msg("playback stopped")
     self.is_playing = False

2:
.kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py
Code:
elif self.lmsserver.status["title"] != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8")
change to
Code:
elif self.lmsserver.status["title"].strip() != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8")

it still throws demuxer errors into log, but playback is not interrupted and everything works!
I commented that section out but it resulted in not being able to stop playback at all.

It seems that xbmc.player calls the OnPlayBackStopped function if play is called while already playing.

I made below changes and it seems to work fine so far. I also had an issue with the playlist not always being updated. Maybe you can test it. I'd refine it a bit and then maybe write a pull request.

To test, put below content into a file, e.g. patch.txt and then apply patch -p1 < patch.txt from the .kodi/addons/ folder


Code:

diff -x '.*' -ruN ./plugin.audio.squeezebox/resources/lib/main_service.py .kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py
--- ./plugin.audio.squeezebox/resources/lib/main_service.py     2020-11-16 19:23:13.119458346 +0100
+++ .kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py  2020-11-16 19:16:19.090921696 +0100
@@ -139,12 +139,14 @@
                 self._prev_checksum = self.lmsserver.timestamp
                 log_msg("playlist changed on lms server")
                 self.kodiplayer.update_playlist()
-                self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
+                # self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index) # Don't start playing again
             elif not self.kodiplayer.is_playing and self.lmsserver.mode == "play":
                 # playback started
                 log_msg("play started by lms server")
-                if not len(self.kodiplayer.playlist):
-                    self.kodiplayer.update_playlist()
+                self._prev_checksum = self.lmsserver.timestamp # Set Timestemp on start of playing
+                self.kodiplayer.update_playlist() # Update playlist on start of playing
+                # if not len(self.kodiplayer.playlist):
+                #    self.kodiplayer.update_playlist()
                 self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)

             elif self.kodiplayer.is_playing:
@@ -158,6 +160,7 @@
                     log_msg("Playlist is randomized! Reload to unshuffle....")
                     self.kodiplayer.playlist.unshuffle()
                     self.kodiplayer.update_playlist()
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif xbmc.getCondVisibility("Player.Paused") and self.lmsserver.mode == "play":
                     # playback resumed
@@ -169,12 +172,15 @@
                     self.kodiplayer.pause()
                 elif self.kodiplayer.playlist.getposition() != self.lmsserver.cur_index:
                     # other track requested
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     log_msg("other track requested by lms server")
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif self.lmsserver.status["title"] != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8"):
                     # monitor if title still matches
                     log_msg("title mismatch - updating playlist...")
                     self.kodiplayer.update_playlist()
+                    log_msg("other track requested by lms server")
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif self.lmsserver.mode == "play" and not self.lmsserver.status["current_title"]:
                     # check if seeking is needed - if current_title has value, it means it's a radio stream so we ignore that
diff -x '.*' -ruN ./plugin.audio.squeezebox/resources/lib/player_monitor.py .kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py
--- ./plugin.audio.squeezebox/resources/lib/player_monitor.py   2020-11-16 19:23:13.119458346 +0100
+++ .kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py        2020-11-15 17:51:37.529612468 +0100
@@ -129,9 +129,11 @@
     def update_playlist(self):
         '''Update the playlist'''
         lmsplaylist = self.lmsserver.cur_playlist(True)
-        if len(self.playlist) > len(lmsplaylist):
-            log_msg("clearing playlist...")
-            self.playlist.clear()
+        log_msg("clearing playlist...") #
+        self.playlist.clear()           # Always clear playlist if requested, don't compare size
+#         if len(self.playlist) > len(lmsplaylist):
+#             log_msg("clearing playlist...")
+#             self.playlist.clear()
         for item in lmsplaylist:
             li, file_name = self.create_listitem(item)
             self.playlist.add(file_name, li, item["playlist index"])
Since Libreelec does not come with patch, it involved some typing, but I think you nailed it. Works flawlessly for me!

I would really suggest you do a pull request and maybe Marcel Veldt finds some time to update his library.
Reply
patch can be installed in Kodi, it is included in the System Tools addon

I have patched this and it does indeed appear to work even though I got this error:

Code:


Kodi:~/.kodi/addons # patch -p1 < patch.txt
patching file plugin.audio.squeezebox/resources/lib/main_service.py
Hunk #3 FAILED at 172.
1 out of 3 hunks FAILED -- saving rejects to file plugin.audio.squeezebox/resources/lib/main_service.py.rej
patching file plugin.audio.squeezebox/resources/lib/player_monitor.py


The problem that I still have is that I cannot get the music to go to Analogue. I've tried every entry in the 'Select audio output device' menu but it's still going to HDMI.

Does anyone know how i can fix this please?
Reply
(2020-11-16, 20:44)dajoe Wrote:
(2020-10-05, 16:31)kriznik Wrote:
(2020-09-15, 19:31)kriznik Wrote: I have exactly same issue when playing from LMS it stops after 2-3seconds
and in log a lot of demuxers

Code:
2020-09-15 12:43:02.751 T:139637611808512  NOTICE: plugin.audio.squeezebox --> play started by lms server
2020-09-15 12:43:02.998 T:139637628593920   ERROR: Init: Error creating demuxer
2020-09-15 12:43:03.031 T:139637628593920  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder pcm_s16le
2020-09-15 12:43:03.163 T:139638178051840  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms

just to head up for anyone who needs to solve this issue:
(tested on libreelec and regular kodi on linux machine as well)

you need to do two edits:

1:
.kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py
comment this section
Code:

def onPlayBackStopped(self):
   '''Kodi event fired when playback is stopped'''
    if self.is_playing:
        self.lmsserver.stop()
        log_msg("playback stopped")
     self.is_playing = False

2:
.kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py
Code:
elif self.lmsserver.status["title"] != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8")
change to
Code:
elif self.lmsserver.status["title"].strip() != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8")

it still throws demuxer errors into log, but playback is not interrupted and everything works!
I commented that section out but it resulted in not being able to stop playback at all.

It seems that xbmc.player calls the OnPlayBackStopped function if play is called while already playing.

I made below changes and it seems to work fine so far. I also had an issue with the playlist not always being updated. Maybe you can test it. I'd refine it a bit and then maybe write a pull request.

To test, put below content into a file, e.g. patch.txt and then apply patch -p1 < patch.txt from the .kodi/addons/ folder


Code:

diff -x '.*' -ruN ./plugin.audio.squeezebox/resources/lib/main_service.py .kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py
--- ./plugin.audio.squeezebox/resources/lib/main_service.py     2020-11-16 19:23:13.119458346 +0100
+++ .kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py  2020-11-16 19:16:19.090921696 +0100
@@ -139,12 +139,14 @@
                 self._prev_checksum = self.lmsserver.timestamp
                 log_msg("playlist changed on lms server")
                 self.kodiplayer.update_playlist()
-                self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
+                # self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index) # Don't start playing again
             elif not self.kodiplayer.is_playing and self.lmsserver.mode == "play":
                 # playback started
                 log_msg("play started by lms server")
-                if not len(self.kodiplayer.playlist):
-                    self.kodiplayer.update_playlist()
+                self._prev_checksum = self.lmsserver.timestamp # Set Timestemp on start of playing
+                self.kodiplayer.update_playlist() # Update playlist on start of playing
+                # if not len(self.kodiplayer.playlist):
+                #    self.kodiplayer.update_playlist()
                 self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)

             elif self.kodiplayer.is_playing:
@@ -158,6 +160,7 @@
                     log_msg("Playlist is randomized! Reload to unshuffle....")
                     self.kodiplayer.playlist.unshuffle()
                     self.kodiplayer.update_playlist()
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif xbmc.getCondVisibility("Player.Paused") and self.lmsserver.mode == "play":
                     # playback resumed
@@ -169,12 +172,15 @@
                     self.kodiplayer.pause()
                 elif self.kodiplayer.playlist.getposition() != self.lmsserver.cur_index:
                     # other track requested
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     log_msg("other track requested by lms server")
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif self.lmsserver.status["title"] != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8"):
                     # monitor if title still matches
                     log_msg("title mismatch - updating playlist...")
                     self.kodiplayer.update_playlist()
+                    log_msg("other track requested by lms server")
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif self.lmsserver.mode == "play" and not self.lmsserver.status["current_title"]:
                     # check if seeking is needed - if current_title has value, it means it's a radio stream so we ignore that
diff -x '.*' -ruN ./plugin.audio.squeezebox/resources/lib/player_monitor.py .kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py
--- ./plugin.audio.squeezebox/resources/lib/player_monitor.py   2020-11-16 19:23:13.119458346 +0100
+++ .kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py        2020-11-15 17:51:37.529612468 +0100
@@ -129,9 +129,11 @@
     def update_playlist(self):
         '''Update the playlist'''
         lmsplaylist = self.lmsserver.cur_playlist(True)
-        if len(self.playlist) > len(lmsplaylist):
-            log_msg("clearing playlist...")
-            self.playlist.clear()
+        log_msg("clearing playlist...") #
+        self.playlist.clear()           # Always clear playlist if requested, don't compare size
+#         if len(self.playlist) > len(lmsplaylist):
+#             log_msg("clearing playlist...")
+#             self.playlist.clear()
         for item in lmsplaylist:
             li, file_name = self.create_listitem(item)
             self.playlist.add(file_name, li, item["playlist index"])

THANK YOU for sorting this!  I've had the same challenges as others (not being able to use the Interface to start/stop playback after the edits) but also had a persistent playlist skipping problem (song plays first 2-5 seconds, then skips to next song) when using the Pandora app, and this has solved that too!  Amazing, so grateful you shared this!
Reply
(2020-11-16, 20:44)dajoe Wrote:
(2020-10-05, 16:31)kriznik Wrote:
(2020-09-15, 19:31)kriznik Wrote: I have exactly same issue when playing from LMS it stops after 2-3seconds
and in log a lot of demuxers

Code:
2020-09-15 12:43:02.751 T:139637611808512  NOTICE: plugin.audio.squeezebox --> play started by lms server
2020-09-15 12:43:02.998 T:139637628593920   ERROR: Init: Error creating demuxer
2020-09-15 12:43:03.031 T:139637628593920  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder pcm_s16le
2020-09-15 12:43:03.163 T:139638178051840  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms

just to head up for anyone who needs to solve this issue:
(tested on libreelec and regular kodi on linux machine as well)

you need to do two edits:

1:
.kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py
comment this section
Code:

def onPlayBackStopped(self):
   '''Kodi event fired when playback is stopped'''
    if self.is_playing:
        self.lmsserver.stop()
        log_msg("playback stopped")
     self.is_playing = False

2:
.kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py
Code:
elif self.lmsserver.status["title"] != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8")
change to
Code:
elif self.lmsserver.status["title"].strip() != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8")

it still throws demuxer errors into log, but playback is not interrupted and everything works!
I commented that section out but it resulted in not being able to stop playback at all.

It seems that xbmc.player calls the OnPlayBackStopped function if play is called while already playing.

I made below changes and it seems to work fine so far. I also had an issue with the playlist not always being updated. Maybe you can test it. I'd refine it a bit and then maybe write a pull request.

To test, put below content into a file, e.g. patch.txt and then apply patch -p1 < patch.txt from the .kodi/addons/ folder


Code:

diff -x '.*' -ruN ./plugin.audio.squeezebox/resources/lib/main_service.py .kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py
--- ./plugin.audio.squeezebox/resources/lib/main_service.py     2020-11-16 19:23:13.119458346 +0100
+++ .kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py  2020-11-16 19:16:19.090921696 +0100
@@ -139,12 +139,14 @@
                 self._prev_checksum = self.lmsserver.timestamp
                 log_msg("playlist changed on lms server")
                 self.kodiplayer.update_playlist()
-                self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
+                # self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index) # Don't start playing again
             elif not self.kodiplayer.is_playing and self.lmsserver.mode == "play":
                 # playback started
                 log_msg("play started by lms server")
-                if not len(self.kodiplayer.playlist):
-                    self.kodiplayer.update_playlist()
+                self._prev_checksum = self.lmsserver.timestamp # Set Timestemp on start of playing
+                self.kodiplayer.update_playlist() # Update playlist on start of playing
+                # if not len(self.kodiplayer.playlist):
+                #    self.kodiplayer.update_playlist()
                 self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)

             elif self.kodiplayer.is_playing:
@@ -158,6 +160,7 @@
                     log_msg("Playlist is randomized! Reload to unshuffle....")
                     self.kodiplayer.playlist.unshuffle()
                     self.kodiplayer.update_playlist()
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif xbmc.getCondVisibility("Player.Paused") and self.lmsserver.mode == "play":
                     # playback resumed
@@ -169,12 +172,15 @@
                     self.kodiplayer.pause()
                 elif self.kodiplayer.playlist.getposition() != self.lmsserver.cur_index:
                     # other track requested
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     log_msg("other track requested by lms server")
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif self.lmsserver.status["title"] != xbmc.getInfoLabel("MusicPlayer.Title").decode("utf-8"):
                     # monitor if title still matches
                     log_msg("title mismatch - updating playlist...")
                     self.kodiplayer.update_playlist()
+                    log_msg("other track requested by lms server")
+                    self.kodiplayer.is_playing = False # it seems that xbmc.player calls the OnPlayBackStopped function if the play function is called while already playing.
                     self.kodiplayer.play(self.kodiplayer.playlist, startpos=self.lmsserver.cur_index)
                 elif self.lmsserver.mode == "play" and not self.lmsserver.status["current_title"]:
                     # check if seeking is needed - if current_title has value, it means it's a radio stream so we ignore that
diff -x '.*' -ruN ./plugin.audio.squeezebox/resources/lib/player_monitor.py .kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py
--- ./plugin.audio.squeezebox/resources/lib/player_monitor.py   2020-11-16 19:23:13.119458346 +0100
+++ .kodi/addons/plugin.audio.squeezebox/resources/lib/player_monitor.py        2020-11-15 17:51:37.529612468 +0100
@@ -129,9 +129,11 @@
     def update_playlist(self):
         '''Update the playlist'''
         lmsplaylist = self.lmsserver.cur_playlist(True)
-        if len(self.playlist) > len(lmsplaylist):
-            log_msg("clearing playlist...")
-            self.playlist.clear()
+        log_msg("clearing playlist...") #
+        self.playlist.clear()           # Always clear playlist if requested, don't compare size
+#         if len(self.playlist) > len(lmsplaylist):
+#             log_msg("clearing playlist...")
+#             self.playlist.clear()
         for item in lmsplaylist:
             li, file_name = self.create_listitem(item)
             self.playlist.add(file_name, li, item["playlist index"])
Thank you for this patch.  I applied it to my main Kodi/MythTV server and it worked perfectly for me.
Reply
Hi Folks,

I also love to use this addon, but I can't get it to install on my libreelec 9.2 installation. I've got the message, that some of the dependencies are not available in the repository. 
Can someone guide me, how to do it right?

So Long

Jeremia
Reply
(2020-11-18, 23:06)nielsknip Wrote:
(2020-11-16, 21:11)nielsknip Wrote: Hi all,

The Squeezelite version is outdated in the Multimedia-tools package. Upgrading to latest should solve our issue I think.

I’ve requested the Libreelec devs on Github to do so; however they didn’t get around to it yet.

https://github.com/LibreELEC/LibreELEC.t...-722323185

Gr, Nelis

A zip is now posted in that thread, for manually updating multimedia tools package with Squeezelite to 1.9.8 if you're impatient for the auto-update. First test seems very promising for me at least; nice synced music over multiple PIs without interruption.
I have Libreelec 9.2.6 on a Pi3 (updated today).

Where is the multimedia tools package to be found? What is the name of the ZIP file (or is it on a remote repo?). I can't find anything to explain this anywhere.

I hunted through the Kodi GUI for about 20 - 25 minutes and I couldn't find it. Maybe I removed it a few months ago. I don't remember doing so. But I do remember fighting with xsqueeze many moons ago. I always have trouble finding things in Kodi.

Today I removed the xsqueeze addons via the GUI and rebooted. But I still found all this

KodiPI:~/.kodi/addons/packages # find / | grep -i squee
/storage/.kodi/addons/packages/script.module.xsqueezecommon-0.2.3.zip
/storage/.kodi/addons/packages/plugin.program.xsqueezechooser-0.2.2.zip
/storage/.kodi/addons/packages/script.xsqueeze-1.2.7.zip
/storage/.kodi/addons/script.module.xsqueezecommon
/storage/.kodi/addons/script.module.xsqueezecommon/README.txt
/storage/.kodi/addons/script.module.xsqueezecommon/changelog.txt
/storage/.kodi/addons/script.module.xsqueezecommon/addon.xml
/storage/.kodi/addons/script.module.xsqueezecommon/LICENSE.txt
/storage/.kodi/addons/script.module.xsqueezecommon/lib
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/__init__.py
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/server.pyo
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/player.pyo
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/__init__.pyo
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/player.py
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/utils.py
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/server.py
/storage/.kodi/addons/script.module.xsqueezecommon/lib/pylms/.gitignore
/storage/.kodi/addons/script.module.xsqueezecommon/lib/XSqueezeCommon.py
/storage/.kodi/addons/script.module.xsqueezecommon/lib/XSqueezeCommon.pyo
/storage/.kodi/addons/script.module.xsqueezecommon/lib/.gitignore


I have no .kodi/addons/plugin.audio.* 

Maybe it is time to reformat the SD card with a fresh image.
Reply
Sad 
Hi,
I'm having problems with Squeezebox for Kodi. It was working fine on my Kodi install on a Raspberry Pi 4, until I ran an upgrade/update yesterday and now Squeezebox can't find the server. I've tried re-installing Squeezebox for Kodi but to no avail. I activated the debug log and extracted the relevant lines; it seems that Squeezebox thinks that Kodi is running on an x86 machine and is looking for the wrong Squeezelite executable (note that the LMS server (max2play) is on 192.168.1.4 and my laptop, which I'm using to control LMS, is on 192.168.1.78):

2021-02-28 12:25:10.767 T:2650448080  NOTICE: plugin.audio.squeezebox --> started webproxy at port 51100
2021-02-28 12:25:12.775 T:2282086608  NOTICE: plugin.audio.squeezebox --> Detected Mac-Address: dc:a6:32:34:63:b9
2021-02-28 12:25:17.848 T:2282086608  NOTICE: plugin.audio.squeezebox --> discovery: [{'from': ('192.168.1.4', 3483), 'host': '192.168.1.4', 'data': 'EJSON\x049000', 'port': 9000}, {'from': ('192.168.1.78', 3483), 'host': '192.168.1.78', 'data': 'EJSON\x049002', 'port': 9002}]
2021-02-28 12:25:17.849 T:2282086608  NOTICE: plugin.audio.squeezebox --> LMS server discovered - host: 192.168.1.4 - port: 9000
2021-02-28 12:25:17.851 T:2282086608   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values
                                              File "/home/pi/.kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py", line 81, in run
                                              File "/home/pi/.kodi/addons/plugin.audio.squeezebox/resources/lib/main_service.py", line 199, in start_squeezelite
                                              File "/home/pi/.kodi/addons/plugin.audio.squeezebox/resources/lib/utils.py", line 95, in get_squeezelite_binary
                                            OSError: [Errno 2] No such file or directory: '/home/pi/.kodi/addons/plugin.audio.squeezebox/resources/lib/bin/linux/squeezelite-x86'

I've run out of ideas and would greatly appreciate any help. I'm running Kodi v18.7 and Squeezebox for Kodi v1.0.19.

Many thanks,
Andy
Reply
Sad 
(2021-02-28, 14:39)hillsidebeer Wrote: Hi,
I'm having problems with Squeezebox for Kodi. It was working fine on my Kodi install on a Raspberry Pi 4, until I ran an upgrade/update yesterday and now Squeezebox can't find the server. I've tried re-installing Squeezebox for Kodi but to no avail. I activated the debug log and extracted the relevant lines; it seems that Squeezebox thinks that Kodi is running on an x86 machine and is looking for the wrong Squeezelite executable (note that the LMS server (max2play) is on 192.168.1.4 and my laptop, which I'm using to control LMS, is on 192.168.1.78):

<stuff deleted>
 OSError: [Errno 2] No such file or directory: '/home/pi/.kodi/addons/plugin.audio.squeezebox/resources/lib/bin/linux/squeezelite-x86'
Update: as Squeezebox hasn't correctly identified the host as an RPi, I (in my ignorance) edited the file /home/pi/.kodi/addons/plugin.audio.squeezebox/resources/lib/utils.py and changed the default binary to "squeezelite-arm" and now squeezelite runs ok. However, although it now finds the server, it now claims that it can't connect:

2021-02-28 13:31:23.299 T:2274398416 WARNING: plugin.audio.squeezebox --> Exception in lmsserver ! --> Server is offline or connection error...

and when I look for the squeezelite process I get:

pi        1156  0.0  0.0      0     0 ?        Z    13:31   0:00 [squeezelite-arm] <defunct>

which implies that squeezelite is stopped.

Any ideas?

Thanks again,
Andy
Reply
Dear all!

Can you help me to make this addon work under Android TV.

Setup:
NVIDIA Shield with Android TV 9
Kodi 18.9
Installed the addon from the repo
SB Palyer is installed and working perfectly well
LMS 7.9.1 

When addon is installed it is not able automatically or manually see LMS. And I can't select audio device.
How can I make it work?
Reply
Hi together,
just tried to install Squeezebox for Kodi 1.0.19 with an uptodate OSMC. Unfortunately the plugin even do not find my lms in the latest version 8.0.2 Did anyone an success installation of the plugin in OSMC 2020.11-1? Or did I miss something important?
Best regards
Michael
Reply
in addition - the plugin found my LMS

2646880  NOTICE: plugin.audio.squeezebox --> discovery: [{'from': ('1xx.1xx.1xx.x', 3483), 'host': '1xx.1xx.1xx.x', 'data': 'EJSON\x049000', 'port': 9000}]
2021-03-21 19:24:25.982 T:1352646880   DEBUG: Skin Helper Simplecache --> Initialized
2021-03-21 19:24:25.982 T:1352646880  NOTICE: plugin.audio.squeezebox --> LMS server discovered - host: 1xx.xx.1xx.x - port: 9000
2021-03-21 19:24:25.984 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting definitions
2021-03-21 19:24:25.984 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: trying to load setting definitions from old format...
2021-03-21 19:24:25.985 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values
2021-03-21 19:24:26.016 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting definitions
2021-03-21 19:24:26.017 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: trying to load setting definitions from old format...
2021-03-21 19:24:26.018 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values
2021-03-21 19:24:26.193 T:1582358752   DEBUG: EventClient: button code 0 pressed
2021-03-21 19:24:26.203 T:1916002320   DEBUG: HandleKey: 11 (0x0b, obc244) pressed, action is Select
2021-03-21 19:24:26.205 T:1916002320   DEBUG: Activating window ID: 10502
2021-03-21 19:24:26.210 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting definitions
2021-03-21 19:24:26.210 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: trying to load setting definitions from old format...
2021-03-21 19:24:26.212 T:1352646880   DEBUG: CAddonSettings[plugin.audio.squeezebox]: loading setting values
[...]

but ends up with

0716128   DEBUG: plugin.audio.squeezebox --> Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.audio.squeezebox/resources/lib/lmsserver.py", line 228, in get_json
                                                response = requests.get(url, data=json.dumps(params), timeout=20)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 75, in get
                                                return request('get', url, params=params, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/api.py", line 60, in request
                                                return session.request(method=method, url=url, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 533, in request
                                                resp = self.send(prep, **send_kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 646, in send
                                                r = adapter.send(request, **kwargs)
                                              File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 498, in send
                                                raise ConnectionError(err, request=request)
                                            ConnectionError: ('Connection aborted.', BadStatusLine('No status line received - the server has closed the connection',))
2021-03-21 19:24:28.406 T:1310716128 WARNING: plugin.audio.squeezebox --> Exception in lmsserver ! --> Server is offline or connection error...

2021-03-21 19:24:28.421 T:1310716128   DEBUG: plugin.audio.squeezebox --> Traceback (most recent call last):
Reply
Where can I download this? The links at the beginning of the thread are all broken (404)

Best I could find is a beta repository that had no content/did not work.

Thanks.
Reply
Latest version can be found here : 
https://github.com/kodi-community-addons...arcelveldt
Reply
(2021-04-12, 08:21)Vincs Wrote: Latest version can be found here : 
https://github.com/kodi-community-addons...arcelveldt

The link to add the repository to kodi  is still giving me a 404
Reply
Hi, I was able to add the repository (1.0.3) to my KODi. But for unknown reason i could not find the squeezebox plugin. I'm using libreelec with KODi Matrix.
Any Idea what I'm doing wrong?

So Long

Jeremia
Reply
  • 1
  • 15
  • 16
  • 17(current)
  • 18
  • 19
  • 20

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