khk
This commit is contained in:
@@ -1931,6 +1931,10 @@ local function _start_screenshot_store_save(store, out_path, tags)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local tag_list = _normalize_tag_list(tags)
|
local tag_list = _normalize_tag_list(tags)
|
||||||
|
local screenshot_url = trim(tostring((_current_url_for_web_actions and _current_url_for_web_actions()) or mp.get_property(CURRENT_WEB_URL_PROP) or ''))
|
||||||
|
if screenshot_url == '' or not screenshot_url:match('^https?://') then
|
||||||
|
screenshot_url = ''
|
||||||
|
end
|
||||||
local cmd = 'add-file -store ' .. quote_pipeline_arg(store)
|
local cmd = 'add-file -store ' .. quote_pipeline_arg(store)
|
||||||
.. ' -path ' .. quote_pipeline_arg(out_path)
|
.. ' -path ' .. quote_pipeline_arg(out_path)
|
||||||
_set_selected_store(store)
|
_set_selected_store(store)
|
||||||
@@ -1940,6 +1944,9 @@ local function _start_screenshot_store_save(store, out_path, tags)
|
|||||||
local tag_string = table.concat(tag_list, ',')
|
local tag_string = table.concat(tag_list, ',')
|
||||||
cmd = cmd .. ' | add-tag ' .. quote_pipeline_arg(tag_string)
|
cmd = cmd .. ' | add-tag ' .. quote_pipeline_arg(tag_string)
|
||||||
end
|
end
|
||||||
|
if screenshot_url ~= '' then
|
||||||
|
cmd = cmd .. ' | add-url ' .. quote_pipeline_arg(screenshot_url)
|
||||||
|
end
|
||||||
|
|
||||||
_lua_log('screenshot-save: queueing repl pipeline cmd=' .. cmd)
|
_lua_log('screenshot-save: queueing repl pipeline cmd=' .. cmd)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user