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: 388820e3d7396d5ce830d9932f01f9cc434e8a0a
Parent: be48256ca2be74df12eb006dbee974f1026effed
Author: Ren Tatsumoto
Date:   Wed,  9 Sep 2020 03:45:17 +0300

replace command native with a wrapper

Diffstat:
Msubs2srs.lua | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -213,12 +213,7 @@ local function anki_compatible_length(str) 'BEGIN{print substr(str, 1, limit); exit}' } - local ret = mp.command_native{ - name = "subprocess", - playback_only = false, - capture_stdout = true, - args = args - } + local ret = subprocess(args) if ret.status == 0 then ret.stdout = remove_newlines(ret.stdout)