This commit is contained in:
2026-01-17 02:36:06 -08:00
parent 3a7c443004
commit c6fd6b4224
9 changed files with 440 additions and 226 deletions

View File

@@ -344,7 +344,7 @@ class MPV:
def _q(s: str) -> str:
return '"' + s.replace("\\", "\\\\").replace('"', '\\"') + '"'
pipeline = f"download-file -url {_q(url)} -format {_q(fmt)}"
pipeline = f"download-file -url {_q(url)} -query {_q(f'format:{fmt}')}"
if store:
pipeline += f" | add-file -store {_q(store)}"
else:

View File

@@ -518,7 +518,7 @@ def _run_op(op: str, data: Any) -> Dict[str, Any]:
size = _format_bytes(fmt.get("filesize") or fmt.get("filesize_approx"))
# Build selection args compatible with MPV Lua picker.
selection_args = ["-format", format_id]
selection_args = ["-query", f"format:{format_id}"]
rows.append(
{