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: f7fec8df22f0c3c8384695b8f865f4a7d8cc246f
Parent: 1788ebb259202f45a01173e91bf813184c1099af
Author: Ren Tatsumoto
Date:   Mon, 19 Oct 2020 06:32:59 +0300

fn rename

Diffstat:
Msubs2srs.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -350,7 +350,7 @@ local function construct_collection_path() return string.format('%s/.local/share/Anki2/%s/collection.media/', os.getenv("HOME"), config.anki_user) end -local function check_config_sanity() +local function validate_config() if not is_dir(config.collection_path) then -- collection path wasn't specified. construct it using config.anki_user config.collection_path = construct_collection_path() @@ -948,7 +948,7 @@ if config.autoclip == true then clip_autocopy.enable() end -check_config_sanity() +validate_config() ankiconnect.create_deck_if_doesnt_exist(config.deck_name) mp.add_forced_key_binding("ctrl+c", "copy-sub-to-clipboard", copy_sub_to_clipboard) mp.add_key_binding('a', 'mpvacious-menu-open', menu.open) -- a for advanced