mirror of https://github.com/mpv-player/mpv.git
ytdl_hook: enable runtime changes of script options
This commit is contained in:
parent
bca917f6d2
commit
c8e5a615e9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue