Skip to content

Instantly share code, notes, and snippets.

nsirolli / autosub.lua
Created January 6, 2022 20:07 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subliminal.
-- requires subliminal, version 1.0 or newer
-- default keybinding: b
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding auto_load_subs
local utils = require 'mp.utils'
function load_sub_fn()
subl = "/usr/local/bin/subliminal" -- use 'which subliminal' to find the path"Searching subtitle")
mp.osd_message("Searching subtitle")
t = {}