Commit: 1c57897885f8e38f89a38205e422988328638c51
Parent: 8179363a0729c83f15d0affef400d57ea669ab05
Author: Ren Tatsumoto
Date: Sun, 6 Sep 2020 18:23:47 +0300
notify when the user sets timings
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -527,11 +527,14 @@ end
subs.set_timing = function(position)
subs.user_timings[position] = mp.get_property_number('time-pos')
+ local time_human = human_readable_time(subs.user_timings[position])
if is_emptytable(subs.list) then
mp.observe_property("sub-text", "string", subs.append)
end
+
menu.update()
+ mp.osd_message(string.format("%s is set to %s.", position, time_human), 2)
end
subs.set_starting_line = function()