From 2a283f190d74813f933b95e43aa45c1d774e4c8f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 1 Oct 2023 09:51:40 +0530 Subject: mpv: init support for links --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index a057688..69ab7c8 100644 --- a/main.lua +++ b/main.lua @@ -54,7 +54,7 @@ local sub_setup = function () end mkdir(out) - name = mp.get_property_native('path') + name = mp.get_property_native('path'):match('[^/]*$') name = util.string_rm_vid_ext(name) out = out .. '/' .. name .. '.srt' -- cgit v1.2.3