- chrome://dino
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local utils = require 'mp.utils' | |
function load_sub_fn() | |
log("info", "Searching for subtitles") | |
local t = {args = {"subliminal", "download", "-s", "-l", "en", mp.get_property("path")}} | |
local res = utils.subprocess(t) | |
if res.status == 0 and res.stdout:find("0 error") then | |
mp.commandv("rescan_external_files", "reselect") |