mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: ecee8e592622edb73a3bd5cde3d331a66e1c1b10
Parent: c9e4e4f02d5c5e50b7422a585d3159bbc152e284
Author: Ren Tatsumoto
Date:   Sat,  4 Sep 2021 17:42:55 +0300

when replaying, account for sub delay

Diffstat:
Msubs2srs.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -823,7 +823,7 @@ end)() local function sub_replay() local sub = subs.get_current() - pause_timer.set_stop_time(sub['end'] - 0.050) + pause_timer.set_stop_time(sub['end'] - 0.050 + mp.get_property_native("sub-delay")) mp.commandv('seek', sub['start'], 'absolute') mp.set_property("pause", "no") mp.observe_property("time-pos", "number", pause_timer.check_stop)