Commit: 1d73bcfadd825211a1c5a11bedfdfcde4aba11c9
Parent: 073115e10e07fbf4d7e573cc782968216c48a25c
Author: Ren Tatsumoto
Date: Tue, 1 Dec 2020 15:38:29 +0300
refuse to update a note when no sub text was grabbed
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -379,7 +379,7 @@ local function update_last_note(overwrite)
local sub = subs.get()
local last_note_id = ankiconnect.get_last_note_id()
- if sub == nil then
+ if sub == nil or is_empty(sub['text']) then
notify("Nothing to export. Have you set the timings?", "warn", 2)
return
end