f
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user