Pass input-ipc-server player argument to mpv (#529)

This commit is contained in:
Etoh 2024-01-28 21:16:40 +00:00 committed by GitHub
parent 0c0df605d5
commit 5419358e5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -420,6 +420,8 @@ class MpvPlayer(BasePlayer):
options_string = ", ".join(options) options_string = ", ".join(options)
self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string]) self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string])
self._setOSDPosition() self._setOSDPosition()
if self._listener.mpv_arguments.get("input-ipc-server"):
self._setProperty("input-ipc-server", self._listener.mpv_arguments.get("input-ipc-server"))
def _handleUnknownLine(self, line): def _handleUnknownLine(self, line):
self.mpvErrorCheck(line) self.mpvErrorCheck(line)