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)
).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