summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-03-29 16:38:52 +0200
committersfan5 <sfan5@live.de>2020-03-29 17:45:59 +0200
commitc8e5a615e9099ac3e704936538c64284ee1477ff (patch)
treea2962953b3b345a2c51bf7ac7ffde40d2e39af6c /player
parentbca917f6d2c50d9df3a4140b7be7beb6d567aa5b (diff)
downloadmpv-c8e5a615e9099ac3e704936538c64284ee1477ff.tar.bz2
mpv-c8e5a615e9099ac3e704936538c64284ee1477ff.tar.xz
ytdl_hook: enable runtime changes of script options
Diffstat (limited to 'player')
-rw-r--r--player/lua/ytdl_hook.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua
index f40a1146e9..be34ec7d6c 100644
--- a/player/lua/ytdl_hook.lua
+++ b/player/lua/ytdl_hook.lua
@@ -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)