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 mp = require 'mp' | |
local block = true | |
function string:trim() | |
return (self:gsub("^%s*(.-)%s*$", "%1")) | |
end | |
-- safe protocol (copied from mpv ytdl_hook.lua) | |
------------------------------------------------------------------------ | |
local function Set (t) |