Commit: 3fc928bec2609408b987e7a05ad6df70851c354e
Parent: ccd8273b238c0eb88cf91414a83f29bfdcee8b2f
Author: Ren Tatsumoto
Date: Tue, 10 Nov 2020 00:04:09 +0300
allow saving audio-only cards for later
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -351,6 +351,9 @@ local function export_to_anki(gui)
notify("Nothing to export.", "warn", 1)
return
end
+ if is_empty(sub['text']) and not gui then
+ sub['text'] = "mpv_" .. os.time()
+ end
local snapshot_filename, audio_filename = construct_media_filenames(sub)
local snapshot_time = (sub['start'] + sub['end']) / 2