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: 85778fbac8b47f814c18810dbf566d7cd0c25901
Parent: f6e57c1aabe2fa03cb192f4fb3f41010b8930b92
Author: Ren Tatsumoto
Date:   Sat, 28 Nov 2020 20:58:09 +0300

add main.lua for mpv v0.33 and newer

Diffstat:
MREADME.md | 3+++
Amain.lua | 2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -117,6 +117,9 @@ $ git clone 'https://github.com/Ajatt-Tools/mpvacious.git' ~/.config/mpv/scripts ``` Since you've just cloned the script to its own subfolder, you need to tell mpv where to look for it. + +**Note:** the step below is not necessary if you're running mpv `v0.33` or newer. + Open or create `~/.config/mpv/scripts/modules.lua` and add these lines: ``` local mpv_scripts_dir_path = os.getenv("HOME") .. "/.config/mpv/scripts/" diff --git a/main.lua b/main.lua @@ -0,0 +1,2 @@ +local utils = require('mp.utils') +dofile(utils.join_path(mp.get_script_directory(), 'subs2srs.lua'))