updated old legacy store names
This commit is contained in:
@@ -901,7 +901,7 @@ function M._load_store_choices_direct_async(cb)
|
||||
'from SYS.logger import set_thread_stream',
|
||||
'set_thread_stream(sys.stderr)',
|
||||
'from SYS.config import load_config',
|
||||
'from Store.registry import list_configured_backend_names',
|
||||
'from PluginCore.backend_registry import list_configured_backend_names',
|
||||
'config = load_config()',
|
||||
'choices = list_configured_backend_names(config) or []',
|
||||
'sys.stdout.write(json.dumps({"choices": choices}, ensure_ascii=False))',
|
||||
@@ -2842,7 +2842,7 @@ local function _start_screenshot_store_save(store, out_path, tags)
|
||||
if screenshot_url == '' or not screenshot_url:match('^https?://') then
|
||||
screenshot_url = ''
|
||||
end
|
||||
local cmd = 'file -add -store ' .. quote_pipeline_arg(store)
|
||||
local cmd = 'file -add -plugin hydrusnetwork -instance ' .. quote_pipeline_arg(store)
|
||||
.. ' -path ' .. quote_pipeline_arg(out_path)
|
||||
if screenshot_url ~= '' then
|
||||
cmd = cmd .. ' -url ' .. quote_pipeline_arg(screenshot_url)
|
||||
@@ -5864,7 +5864,7 @@ mp.register_script_message('medios-download-pick-store', function(json)
|
||||
|
||||
local pipeline_cmd = 'file -download -url ' .. quote_pipeline_arg(url)
|
||||
.. ' -query ' .. quote_pipeline_arg(query)
|
||||
.. ' | file -add -store ' .. quote_pipeline_arg(store)
|
||||
.. ' | file -add -plugin hydrusnetwork -instance ' .. quote_pipeline_arg(store)
|
||||
|
||||
_set_selected_store(store)
|
||||
_queue_pipeline_in_repl(
|
||||
@@ -6331,16 +6331,16 @@ local function _start_trim_with_range(range)
|
||||
pipeline_cmd =
|
||||
'tag -get -emit -store ' .. quote_pipeline_arg(store_hash.store) ..
|
||||
' -query ' .. quote_pipeline_arg('hash:' .. store_hash.hash) ..
|
||||
' | file -add -path ' .. quote_pipeline_arg(output_path) ..
|
||||
' -store "' .. selected_store .. '"' ..
|
||||
' | file -add -plugin hydrusnetwork -instance ' .. quote_pipeline_arg(selected_store) ..
|
||||
' -path ' .. quote_pipeline_arg(output_path) ..
|
||||
' | add-relationship -store "' .. selected_store .. '"' ..
|
||||
' -to-hash ' .. quote_pipeline_arg(store_hash.hash)
|
||||
else
|
||||
pipeline_cmd =
|
||||
'tag -get -emit -store ' .. quote_pipeline_arg(store_hash.store) ..
|
||||
' -query ' .. quote_pipeline_arg('hash:' .. store_hash.hash) ..
|
||||
' | file -add -path ' .. quote_pipeline_arg(output_path) ..
|
||||
' -store "' .. store_hash.store .. '"' ..
|
||||
' | file -add -plugin hydrusnetwork -instance ' .. quote_pipeline_arg(store_hash.store) ..
|
||||
' -path ' .. quote_pipeline_arg(output_path) ..
|
||||
' | add-relationship -store "' .. store_hash.store .. '"' ..
|
||||
' -to-hash ' .. quote_pipeline_arg(store_hash.hash)
|
||||
end
|
||||
@@ -6350,8 +6350,8 @@ local function _start_trim_with_range(range)
|
||||
if selected_store then
|
||||
_lua_log('trim: building file -add command to selected_store=' .. selected_store)
|
||||
-- Don't add title if empty - the file path will be used as title by default
|
||||
pipeline_cmd = 'file -add -path ' .. quote_pipeline_arg(output_path) ..
|
||||
' -store "' .. selected_store .. '"'
|
||||
pipeline_cmd = 'file -add -plugin hydrusnetwork -instance ' .. quote_pipeline_arg(selected_store) ..
|
||||
' -path ' .. quote_pipeline_arg(output_path)
|
||||
_lua_log('trim: pipeline_cmd=' .. pipeline_cmd)
|
||||
else
|
||||
mp.osd_message('Trim complete: ' .. output_path, 5)
|
||||
|
||||
Reference in New Issue
Block a user