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: 0d98df39aaeb85cf60bc7da27cd06c4c5a22a35c
Parent: 24d39340f7924d637f5529652d100d1a280b7ba7
Author: Ren Tatsumoto
Date:   Thu, 27 Aug 2020 05:04:01 +0300

style / readability

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

diff --git a/subs2srs.lua b/subs2srs.lua @@ -241,7 +241,9 @@ end ------------------------------------------------------------ -- ffmpeg helper -ffmpeg = {prefix = {"ffmpeg", "-hide_banner", "-nostdin", "-y", "-loglevel", "quiet"}} +ffmpeg = {} + +ffmpeg.prefix = {"ffmpeg", "-hide_banner", "-nostdin", "-y", "-loglevel", "quiet"} ffmpeg.execute = function(args) if next(args) ~= nil then @@ -379,7 +381,9 @@ end ------------------------------------------------------------ -- subtitles and timings -subs = {list = {}} +subs = {} + +subs.list = {} subs.get_current = function() local sub_text = mp.get_property("sub-text")