diff options
author | sfan5 <sfan5@live.de> | 2020-03-29 16:38:52 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-03-29 17:45:59 +0200 |
commit | c8e5a615e9099ac3e704936538c64284ee1477ff (patch) | |
tree | a2962953b3b345a2c51bf7ac7ffde40d2e39af6c /player/lua | |
parent | bca917f6d2c50d9df3a4140b7be7beb6d567aa5b (diff) | |
download | mpv-c8e5a615e9099ac3e704936538c64284ee1477ff.tar.bz2 mpv-c8e5a615e9099ac3e704936538c64284ee1477ff.tar.xz |
ytdl_hook: enable runtime changes of script options
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/ytdl_hook.lua | 5 |
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) |