close mpv ipc socket

This commit is contained in:
deneb 2025-02-26 18:10:20 +01:00
parent 54640510db
commit 501cb64518

2
app.py
View file

@ -183,6 +183,8 @@ def api_nowplaying():
reply_json: Mapping[str, Any] = json.loads(reply.decode())
response[key] = reply_json["data"] if "data" in reply_json else "Unknown"
sock.close()
return jsonify(response)