cmdlet refactor

This commit is contained in:
2026-05-04 18:41:01 -07:00
parent 3ce339b3c1
commit 24f983473f
44 changed files with 1320 additions and 309 deletions
+3 -3
View File
@@ -470,11 +470,11 @@ class MPV:
def _q(s: str) -> str:
return '"' + s.replace("\\", "\\\\").replace('"', '\\"') + '"'
pipeline = f"download-file -url {_q(url)} -query {_q(f'format:{fmt}')}"
pipeline = f"file -download -url {_q(url)} -query {_q(f'format:{fmt}')}"
if store:
pipeline += f" | add-file -instance {_q(store)}"
pipeline += f" | file -add -instance {_q(store)}"
else:
pipeline += f" | add-file -path {_q(path or '')}"
pipeline += f" | file -add -path {_q(path or '')}"
try:
from TUI.pipeline_runner import PipelineRunner # noqa: WPS433