Fix MPV menu: resolve Lua syntax error and enhance logging
- Remove extra 'end)' that caused '<eof>' expected syntax error at line 2834 - Add comprehensive logging to M.show_menu() with [MENU] prefix - Add logging wrappers to keybindings (m and mbtn_right) - Implement fallback menu opening methods (commandv and command) - Fix audio-display mpv.conf setting to 'no' (was invalid 'yes')
This commit is contained in:
13
MPV/lyric.py
13
MPV/lyric.py
@@ -177,10 +177,15 @@ def _ipc_get_property(
|
||||
*,
|
||||
raise_on_disconnect: bool = False,
|
||||
) -> object:
|
||||
resp = client.send_command({
|
||||
"command": ["get_property",
|
||||
name]
|
||||
})
|
||||
try:
|
||||
resp = client.send_command({
|
||||
"command": ["get_property",
|
||||
name]
|
||||
})
|
||||
except Exception as exc:
|
||||
if raise_on_disconnect:
|
||||
raise ConnectionError(f"Lost mpv IPC connection: {exc}") from exc
|
||||
return default
|
||||
if resp is None:
|
||||
if raise_on_disconnect:
|
||||
raise ConnectionError("Lost mpv IPC connection")
|
||||
|
||||
Reference in New Issue
Block a user