aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-09-30 22:23:11 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 07:50:38 +0530
commitdbc20e0a10883b8cb44343432d4539009a45611b (patch)
tree11c4bcac779830f58549cc50dec23e2944866a10 /lib
parent21684486a17139741ecfc2c2144eea30e68f46cb (diff)
mpv: init
Diffstat (limited to 'lib')
-rw-r--r--lib/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.lua b/lib/util.lua
index d962961..15221dd 100644
--- a/lib/util.lua
+++ b/lib/util.lua
@@ -37,7 +37,7 @@ local zip_ext_first = function (zip, out)
rc = os.execute('unzip -qq ' .. zip .. ' -d ' .. dir)
srt = io.popen('find ' .. dir .. ' -type f -name *.srt'):read('*l')
- os.rename(srt, out)
+ os.execute("mv '" .. srt .. "' '" .. out .. "'")
os.remove(dir)
return rc