aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-01 12:54:48 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 13:02:32 +0530
commitc9c0b23d750d6a6320629f2f7b722b1d3b2c1ddf (patch)
tree693c3b59e58a7533a9d49598a4886b1ce0809446 /server
parent861453ac25d3a5476dd8dc0e1bbe48874d8567af (diff)
lib/util: string_rm_vid_ext -> string_vid_path_to_name
Diffstat (limited to 'server')
-rw-r--r--server/subscene.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/subscene.lua b/server/subscene.lua
index 027f15a..9daad3b 100644
--- a/server/subscene.lua
+++ b/server/subscene.lua
@@ -177,9 +177,10 @@ local sub_fetch = function(link, out)
return (hcode == 200) and zcode
end
-local search = function (key, out)
- local title, id, link, rc
+local search = function (path, out)
+ local title, id, link, rc, key
+ key = util.string_vid_path_to_name(path)
title, rc = title_search(key)
if not rc then
util.error('err: subscene: title_search')