From 34ffb41ba2c2fb4a6ab940322c6898ddc0392b41 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 11 Apr 2026 14:15:24 +0200 Subject: [PATCH] ah fuck --- modules/web.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/web.py b/modules/web.py index b73aa44..d5de41c 100644 --- a/modules/web.py +++ b/modules/web.py @@ -67,7 +67,11 @@ async def ws_handler(websocket: ServerConnection, shared_data: dict, imc_q: mult await websocket.send(json.dumps({"data": result, "event": "toplay"})) # Yes, this is not an accident await websocket.loop.run_in_executor(None, ws_q.put, {"data": result, "event": "toplay"}) elif action == "skip_next": - result = await get_imc("activemod", {"action": "skip_next", "set": msg.get("set",True)}) + result = await get_imc("activemod", msg) + if result is None: await websocket.send(json.dumps({"error": "timeout", "code": 504})) + else: await websocket.send(json.dumps({"data": result, "event": "skip_next"})) + elif action == "skipc": + result = await get_imc("activemod", msg) if result is None: await websocket.send(json.dumps({"error": "timeout", "code": 504})) else: await websocket.send(json.dumps({"data": result, "event": "skip_next"})) elif action == "jingle":