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: cdf837ab9966b9191a5fc1f23a9145345182859f
Parent: faa7b814ca7624a8bf972913fde23e29e0656da4
Author: Ren Tatsumoto
Date:   Wed,  2 Sep 2020 01:15:25 +0300

point -> line

Diffstat:
MREADME.md | 2+-
Msubs2srs.lua | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -95,7 +95,7 @@ Key bindings are configured in ```~/.config/mpv/input.conf```. This step is not necessary. ``` Ctrl+e script-binding anki-export-note -Ctrl+s script-binding set-starting-point +Ctrl+s script-binding set-starting-line Ctrl+r script-binding reset-timings Ctrl+t script-binding toggle-sub-autocopy Ctrl+h script-binding sub-rewind diff --git a/subs2srs.lua b/subs2srs.lua @@ -481,7 +481,7 @@ subs.append = function() end end -subs.set_starting_point = function() +subs.set_starting_line = function() subs.clear() local current_sub = subs.get_current() @@ -562,7 +562,7 @@ if config.autoclip == true then clip_autocopy.enable() end check_config_sanity() ankiconnect.create_deck_if_doesnt_exist(config.deck_name) mp.add_key_binding("ctrl+e", "anki-export-note", export_to_anki) -mp.add_key_binding("ctrl+s", "set-starting-point", subs.set_starting_point) +mp.add_key_binding("ctrl+s", "set-starting-line", subs.set_starting_line) mp.add_key_binding("ctrl+r", "reset-timings", subs.reset_timings) mp.add_key_binding("ctrl+t", "toggle-sub-autocopy", clip_autocopy.toggle) mp.add_key_binding("ctrl+h", "sub-rewind", sub_rewind)