mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 22:55:00 +08:00
fix(mpv): update screenshot script
This commit is contained in:
parent
9597dff6be
commit
e8f30aa30d
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,11 @@ local user_opts = {
|
|||
}
|
||||
|
||||
local script_name = mp.get_script_name()
|
||||
opt.read_options(user_opts, script_name)
|
||||
local raw_user_opts = {dirs = ""}
|
||||
opt.read_options(raw_user_opts, script_name)
|
||||
if raw_user_opts.dirs ~= "" then
|
||||
user_opts.dirs = utils.parse_json(raw_user_opts.dirs)
|
||||
end
|
||||
|
||||
local function set_screenshot_dir()
|
||||
local filepath = mp.get_property("path")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue