From 4160e1cca47f15dc23391a7add206afb047f4346 Mon Sep 17 00:00:00 2001 From: Nose Date: Sat, 21 Mar 2026 15:15:10 -0700 Subject: [PATCH] khk --- MPV/LUA/main.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MPV/LUA/main.lua b/MPV/LUA/main.lua index f092cb5..4e3d2d6 100644 --- a/MPV/LUA/main.lua +++ b/MPV/LUA/main.lua @@ -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)