From c8991438bbd5a003ce8dbefa6d1138b427ec1e1b Mon Sep 17 00:00:00 2001 From: j Date: Tue, 10 Sep 2024 13:03:49 +0100 Subject: [PATCH] group fixes --- player/player.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/player/player.py b/player/player.py index 216165a..74938ef 100755 --- a/player/player.py +++ b/player/player.py @@ -279,7 +279,7 @@ class Sync(Thread): % (self.mpv.time_pos, self.mpv.playlist_current_pos) ).encode() if CONFIG.get("sync_group"): - msg = (b"%s " % CONFIG["sync_group"]) + msg + msg = ("%s " % CONFIG["sync_group"]).encode() + msg except: return try: @@ -312,9 +312,10 @@ class Sync(Thread): except OSError: logger.error("socket closed") return + if CONFIG.get("sync_group"): if data[0] == str(CONFIG["sync_group"]): - data = data[1:] + data = data[1].split(" ", 1) break else: break