j
This commit is contained in:
@@ -1987,7 +1987,7 @@ mp.register_script_message('medios-download-pick-store', function(json)
|
||||
local url = tostring(_pending_download.url)
|
||||
local fmt = tostring(_pending_download.format)
|
||||
|
||||
local pipeline_cmd = 'download-media -url ' .. quote_pipeline_arg(url) .. ' -format ' .. quote_pipeline_arg(fmt)
|
||||
local pipeline_cmd = 'download-file -url ' .. quote_pipeline_arg(url) .. ' -format ' .. quote_pipeline_arg(fmt)
|
||||
.. ' | add-file -store ' .. quote_pipeline_arg(store)
|
||||
|
||||
if not _run_pipeline_detached(pipeline_cmd) then
|
||||
@@ -2015,7 +2015,7 @@ mp.register_script_message('medios-download-pick-path', function()
|
||||
local url = tostring(_pending_download.url)
|
||||
local fmt = tostring(_pending_download.format)
|
||||
|
||||
local pipeline_cmd = 'download-media -url ' .. quote_pipeline_arg(url) .. ' -format ' .. quote_pipeline_arg(fmt)
|
||||
local pipeline_cmd = 'download-file -url ' .. quote_pipeline_arg(url) .. ' -format ' .. quote_pipeline_arg(fmt)
|
||||
.. ' | add-file -path ' .. quote_pipeline_arg(folder)
|
||||
|
||||
if not _run_pipeline_detached(pipeline_cmd) then
|
||||
|
||||
@@ -343,7 +343,7 @@ class MPV:
|
||||
def _q(s: str) -> str:
|
||||
return '"' + s.replace("\\", "\\\\").replace('"', '\\"') + '"'
|
||||
|
||||
pipeline = f"download-media -url {_q(url)} -format {_q(fmt)}"
|
||||
pipeline = f"download-file -url {_q(url)} -format {_q(fmt)}"
|
||||
if store:
|
||||
pipeline += f" | add-file -store {_q(store)}"
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user