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:
2026-02-03 18:26:36 -08:00
parent cc19403087
commit 81b11a8517
6 changed files with 124 additions and 26 deletions

View File

@@ -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")