This commit is contained in:
2026-03-21 15:15:10 -07:00
parent d9a6b1bfb4
commit 4160e1cca4

View File

@@ -1931,6 +1931,10 @@ local function _start_screenshot_store_save(store, out_path, tags)
end
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)
.. ' -path ' .. quote_pipeline_arg(out_path)
_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, ',')
cmd = cmd .. ' | add-tag ' .. quote_pipeline_arg(tag_string)
end
if screenshot_url ~= '' then
cmd = cmd .. ' | add-url ' .. quote_pipeline_arg(screenshot_url)
end
_lua_log('screenshot-save: queueing repl pipeline cmd=' .. cmd)