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: a77aecd8c525c235ae18163281b0e95517d2396c
Parent: a44a43edca8430336a94c125221db61ce48273ee
Author: Ren Tatsumoto
Date:   Thu, 22 Oct 2020 19:41:08 +0300

add a function to determine os type

Diffstat:
Msubs2srs.lua | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -97,6 +97,10 @@ local function is_empty(var) return var == nil or var == '' or (type(var) == 'table' and next(var) == nil) end +local function is_running_windows() + return mp.get_property('options/vo-mmcss-profile') ~= nil +end + local function is_dir(path) if is_empty(path) then return false