ytdl_hook: enable runtime changes of script options

This commit is contained in:
sfan5 2020-03-29 16:38:52 +02:00
parent bca917f6d2
commit c8e5a615e9
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,6 @@ local o = {
all_formats = false,
force_all_formats = true,
}
options.read_options(o)
local ytdl = {
path = "youtube-dl",
@ -17,6 +16,10 @@ local ytdl = {
blacklisted = {}
}
options.read_options(o, nil, function()
ytdl.blacklisted = {} -- reparse o.exclude next time
end)
local chapter_list = {}
function Set (t)