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: 72ed5a8eed38c1ea84f5f192c675041817e21c4c
Parent: a9cb73d728704c8f4b9ec284a11cb678f5705ffe
Author: Ren Tatsumoto
Date:   Fri,  7 May 2021 02:59:57 +0300

Revert "remove the note about modules.lua"

Closes #38

This reverts commit 8b10b6343f563f2f0345b5bf29cc5e0deb43294e.

Diffstat:
MREADME.md | 17+++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -148,6 +148,23 @@ If not, either proceed to Arch Wiki and come back when you're done, or simply cl $ git clone 'https://github.com/Ajatt-Tools/mpvacious.git' ~/.config/mpv/scripts/subs2srs ``` +<details> +<summary>A note for mpv v0.32 and older</summary> + +Since you've just cloned the script to its own subfolder, +you need to tell mpv where to look for it. +mpv v0.33 does this automatically by loading the `main.lua` file in the add-on's folder. + +Open or create `~/.config/mpv/scripts/modules.lua` and add these lines: +``` +local mpv_scripts_dir_path = os.getenv("HOME") .. "/.config/mpv/scripts/" +package.path = package.path .. ';' .. home .. '/.config/mpv/scripts/subs2srs/?.lua' +function load(relative_path) dofile(mpv_scripts_dir_path .. relative_path) end +load("subs2srs/subs2srs.lua") +``` + +</details> + ### Updating with git | Install method | Command |