hh
This commit is contained in:
@@ -121,6 +121,10 @@ class MPVIPCClient:
|
||||
|
||||
payload = json.dumps(request) + "\n"
|
||||
|
||||
# Debug: log the command being sent
|
||||
from helper.logger import debug as _debug
|
||||
_debug(f"[IPC] Sending: {payload.strip()}")
|
||||
|
||||
# Send command
|
||||
if self.is_windows:
|
||||
self.sock.write(payload.encode('utf-8'))
|
||||
@@ -160,6 +164,10 @@ class MPVIPCClient:
|
||||
if not line: continue
|
||||
resp = json.loads(line)
|
||||
|
||||
# Debug: log responses
|
||||
from helper.logger import debug as _debug
|
||||
_debug(f"[IPC] Received: {line}")
|
||||
|
||||
# Check if this is the response to our request
|
||||
if resp.get("request_id") == request.get("request_id"):
|
||||
return resp
|
||||
|
||||
Reference in New Issue
Block a user