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: d5e50478ec3fcdaca132d5bb20aea5823e7c2cb2
Parent: b1ff6f34db095dcb3dd0e5294fa2bc4738e97927
Author: Ren Tatsumoto
Date:   Wed, 19 Jan 2022 11:13:06 +0300

add a switch for the gui browse feature

Diffstat:
M.github/RELEASE/subs2srs.conf | 3+++
Msubs2srs.lua | 4++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/.github/RELEASE/subs2srs.conf b/.github/RELEASE/subs2srs.conf @@ -79,6 +79,9 @@ tag_del_after_episode_num=yes # Convert filename to lowercase for tagging. tag_filename_lowercase=no +# Lets you disable anki browser manipulation by mpvacious. +disable_gui_browse=no + ################## # Image settings # ################## diff --git a/subs2srs.lua b/subs2srs.lua @@ -64,6 +64,7 @@ local config = { audio_field = "SentAudio", image_field = "Image", append_media = true, -- True to append video media after existing data, false to insert media before + disable_gui_browse = false, -- Lets you disable anki browser manipulation by mpvacious. -- Note tagging -- The tag(s) added to new notes. Spaces separate multiple tags. @@ -1178,6 +1179,9 @@ ankiconnect.get_note_fields = function(note_id) end ankiconnect.gui_browse = function(query) + if config.disable_gui_browse then + return + end ankiconnect.execute { action = 'guiBrowse', version = 6,