aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'