Skip to content

Instantly share code, notes, and snippets.

View gim-'s full-sized avatar
🤔

Andrejs Mivreniks gim-

🤔
View GitHub Profile
@gim-
gim- / subdl.lua
Last active February 25, 2017 10:44 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subdl.
-- requires subdl: https://github.com/akexakex/subdl
-- default keybinding: b
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding subdl_load_subs
local utils = require 'mp.utils'
local subdl = "/usr/bin/subdl" -- use 'which subdl' to find the real path
function subdl_load()
mp.msg.info("Searching subtitles...")
mp.osd_message("Searching subtitles...")