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:
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'))