aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-01 09:51:40 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 09:51:40 +0530
commit2a283f190d74813f933b95e43aa45c1d774e4c8f (patch)
treeeaae89df0021da386e72c309c47f8e931015c3a8
parenta0cc0578c5326cc6e720a3d53d62bd424a9f51be (diff)
mpv: init support for links
-rw-r--r--main.lua2
1 files changed, 1 insertions, 1 deletions
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'