h
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# pyright: reportUnusedFunction=false
|
||||
from typing import Any, Dict, Sequence, List, Optional
|
||||
import os
|
||||
import sys
|
||||
@@ -124,10 +125,12 @@ def _repo_log_dir() -> Path:
|
||||
return d
|
||||
|
||||
|
||||
# pyright: ignore[reportUnusedFunction]
|
||||
def _helper_log_file() -> Path:
|
||||
return _repo_log_dir() / "medeia-mpv-helper.log"
|
||||
|
||||
|
||||
# pyright: ignore[reportUnusedFunction]
|
||||
def _lua_log_file() -> Path:
|
||||
return _repo_log_dir() / "medeia-mpv-lua.log"
|
||||
|
||||
@@ -2089,7 +2092,7 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
|
||||
else:
|
||||
print("MPV logs from database (mpv module, most recent first):")
|
||||
if mpv_logs:
|
||||
for timestamp, level, module, message in mpv_logs:
|
||||
for timestamp, level, _module, message in mpv_logs:
|
||||
ts = str(timestamp or "").strip()
|
||||
if ts:
|
||||
print(f"[{ts}] [{level}] {message}")
|
||||
@@ -2248,7 +2251,7 @@ def _start_mpv(
|
||||
except Exception as e:
|
||||
debug(f"Error starting MPV: {e}", file=sys.stderr)
|
||||
|
||||
|
||||
# pyright: ignore[reportCallIssue]
|
||||
CMDLET = Cmdlet(
|
||||
name=".mpv",
|
||||
alias=[".pipe", "pipe", "playlist", "queue", "ls-pipe"],
|
||||
|
||||
Reference in New Issue
Block a user