group fixes
This commit is contained in:
parent
45e2acbbb8
commit
c8991438bb
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue