Skip to content

Instantly share code, notes, and snippets.

View fullmetalsheep's full-sized avatar
❤️
one thing well.

Dash fullmetalsheep

❤️
one thing well.
  • Australia
View GitHub Profile
@fullmetalsheep
fullmetalsheep / trueautosub.lua
Last active June 26, 2023 12:52 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subliminal.
-- requires subliminal, version 1.0 or newer
-- default keybinding: b
local utils = require 'mp.utils'
--sleep function, so that subs aren't downloaded the instant a file is loaded
--taken from:http://lua-users.org/wiki/SleepFunction
function sleep(s)
local ntime = os.time() + s
repeat until os.time() > ntime
end