Skip to content

Instantly share code, notes, and snippets.

@gileri
gileri / autosub.lua
Created September 24, 2015 07:56 — 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
-- Forked from https://gist.github.com/selsta/ce3fb37e775dbd15c698
local utils = require 'mp.utils'
function load_sub_fn()
mp.msg.info("Searching subtitle")
mp.osd_message("Searching subtitle")
t = {}