From 715d6969d8b6094e93d699c08f35fc2b2b110d01 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 1 Oct 2023 09:22:32 +0530 Subject: mpv: now works without sub-auto=fuzzy --- main.lua | 2 ++ server/subscene.lua | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index dcd70eb..feefa6a 100644 --- a/main.lua +++ b/main.lua @@ -1,4 +1,5 @@ local mutil = require 'mp.utils' +local util = require 'lib/util' local subscene = require 'server/subscene' local mkdir = function (path) @@ -48,6 +49,7 @@ local sub_setup = function () mkdir(out) name = mp.get_property_native('path') + name = util.string_rm_vid_ext(name) out = out .. '/' .. name .. '.srt' if subscene.search(name, out) then diff --git a/server/subscene.lua b/server/subscene.lua index ccd4d9a..027f15a 100644 --- a/server/subscene.lua +++ b/server/subscene.lua @@ -180,7 +180,6 @@ end local search = function (key, out) local title, id, link, rc - key = util.string_rm_vid_ext(key) title, rc = title_search(key) if not rc then util.error('err: subscene: title_search') -- cgit v1.2.3