Commit: b5aecf1df5127d8b4d99a49872225bbadac0925c
Parent: 4e7c6bcb35221be6d9c992a7d8cfe1392f89e2ca
Author: Ren Tatsumoto
Date: Tue, 22 Sep 2020 04:50:36 +0300
a handy function to notify both console and osd
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -80,6 +80,13 @@ function table.contains(table, element)
return false
end
+local function notify(message, level, duration)
+ level = level or 'info'
+ duration = duration or 1
+ msg[level](message)
+ mp.osd_message(message, duration)
+end
+
local function check_config_sanity()
if not config.collection_path:endswith('/') then
-- The user forgot to add a slash at the end of the collection path