aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-01 08:44:59 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-01 08:44:59 +0530
commit68b1ff0f855d5e3664833509e611442dff2c45d7 (patch)
treefd5eaaaf77bdeae39a17458dfd57ccb0dc5a4de3
parent65390e78d5d01d66feebfb9a38f21464e09c80ac (diff)
main: notify -> mp.osd_message
-rw-r--r--main.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/main.lua b/main.lua
index 463a412..e949744 100644
--- a/main.lua
+++ b/main.lua
@@ -1,10 +1,6 @@
local mutil = require 'mp.utils'
local subscene = require 'server/subscene'
-local notify = function (str, sec)
- mp.osd_message(str, sec)
-end
-
local mkdir = function (path)
local info = mutil.file_info(path)
if info and not info.is_dir then
@@ -40,7 +36,7 @@ end
local sub_setup = function ()
local out, name
- notify('fetching subtitles')
+ mp.osd_message('fetching subtitles')
out = mp.get_property_native('sub-file-paths')[1]
if out then
@@ -56,9 +52,9 @@ local sub_setup = function ()
if subscene.search(name, out) then
mp.commandv('rescan_external_files')
- notify('fetch success')
+ mp.osd_message('fetch success')
else
- notify('fetch failure')
+ mp.osd_message('fetch failure')
end
end