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: 60f3b6c585d2501fb1674f39d56108e62d2b24a4
Parent: ddc17af92954d044e757122a7af9f188daea6b9c
Author: Ren Tatsumoto
Date:   Sun, 22 Nov 2020 22:29:44 +0300

small adjustments

Diffstat:
MREADME.md | 2+-
Msubs2srs.lua | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md @@ -92,7 +92,7 @@ in the [mpv scripts](https://github.com/mpv-player/mpv/wiki/User-Scripts) folde | GNU/Linux | `~/.config/mpv/scripts/` | | Windows | `C:/Users/Username/AppData/Roaming/mpv/scripts/` | -Note: in [Celluloid](https://www.archlinux.org/packages/community/x86_64/celluloid/) +**Note:** in [Celluloid](https://www.archlinux.org/packages/community/x86_64/celluloid/) user scripts are installed by switching to the "Plugins" tab in the preferences dialog and dropping the files there. diff --git a/subs2srs.lua b/subs2srs.lua @@ -590,7 +590,7 @@ end platform = is_running_windows() and init_platform_windows() or init_platform_nix() ------------------------------------------------------------ --- provides interface for creating audioclips and snapshots +-- provides interface for creating audio clips and snapshots encoder = {} @@ -1067,7 +1067,7 @@ menu.overlay_draw = function(text) menu.overlay:update() end -menu.keybinds = { +menu.keybindings = { { key = 's', fn = function() subs.set_timing('start') end }, { key = 'e', fn = function() subs.set_timing('end') end }, { key = 'c', fn = function() subs.set_starting_line() end }, @@ -1130,7 +1130,7 @@ menu.open = function() return end - for _, val in pairs(menu.keybinds) do + for _, val in pairs(menu.keybindings) do mp.add_forced_key_binding(val.key, val.key, val.fn) end @@ -1143,7 +1143,7 @@ menu.close = function() return end - for _, val in pairs(menu.keybinds) do + for _, val in pairs(menu.keybindings) do mp.remove_key_binding(val.key) end