From 0e3f2245b03e888c14c093a50261e0f54ecdf8e8 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Fri, 8 Mar 2024 19:18:31 +0300 Subject: [PATCH] accept a wider range of chars in the config path related to #29 --- videoclip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/videoclip.lua b/videoclip.lua index 0089bbf..bdf94fc 100644 --- a/videoclip.lua +++ b/videoclip.lua @@ -446,7 +446,7 @@ function pref_menu:save() video_codec = true, audio_codec = true, } - local mpv_dirpath = string.gsub(mp.get_script_directory(), "scripts[\\/]%w+", "") + local mpv_dirpath = string.gsub(mp.get_script_directory(), "scripts[\\/][^\\/]+", "") local config_filepath = utils.join_path(utils.join_path(mpv_dirpath, "script-opts"), string.format('%s.conf', NAME)) local handle = io.open(config_filepath, 'w') if handle ~= nil then