Skip to content

Commit

Permalink
small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Nov 22, 2020
1 parent ddc17af commit 60f3b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions subs2srs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}

Expand Down Expand Up @@ -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 },
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 60f3b6c

Please sign in to comment.