group fixes

This commit is contained in:
j 2024-09-10 13:03:49 +01:00
parent 45e2acbbb8
commit c8991438bb

View file

@ -279,7 +279,7 @@ class Sync(Thread):
% (self.mpv.time_pos, self.mpv.playlist_current_pos) % (self.mpv.time_pos, self.mpv.playlist_current_pos)
).encode() ).encode()
if CONFIG.get("sync_group"): if CONFIG.get("sync_group"):
msg = (b"%s " % CONFIG["sync_group"]) + msg msg = ("%s " % CONFIG["sync_group"]).encode() + msg
except: except:
return return
try: try:
@ -312,9 +312,10 @@ class Sync(Thread):
except OSError: except OSError:
logger.error("socket closed") logger.error("socket closed")
return return
if CONFIG.get("sync_group"): if CONFIG.get("sync_group"):
if data[0] == str(CONFIG["sync_group"]): if data[0] == str(CONFIG["sync_group"]):
data = data[1:] data = data[1].split(" ", 1)
break break
else: else:
break break