From 459c9e91985796210fbc36968f8a6e572141f24f Mon Sep 17 00:00:00 2001 From: Etoh Date: Sat, 3 Feb 2024 12:02:22 +0000 Subject: [PATCH] Pass input-ipc-server player argument to mpv (#529) (#669) * Pass input-ipc-server player argument to mpv (#529) * Create secondary mpv IPC Socket "mpvSyncplaySocket" by default --- syncplay/players/mpv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syncplay/players/mpv.py b/syncplay/players/mpv.py index 641a1c0..10c0aca 100755 --- a/syncplay/players/mpv.py +++ b/syncplay/players/mpv.py @@ -420,6 +420,8 @@ class MpvPlayer(BasePlayer): options_string = ", ".join(options) self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string]) self._setOSDPosition() + publicIPCSocket = self._listener.mpv_arguments.get("input-ipc-server") if self._listener.mpv_arguments.get("input-ipc-server") else "mpvSyncplaySocket" + self._setProperty("input-ipc-server", publicIPCSocket) def _handleUnknownLine(self, line): self.mpvErrorCheck(line)