From c8e5a615e9099ac3e704936538c64284ee1477ff Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 29 Mar 2020 16:38:52 +0200 Subject: ytdl_hook: enable runtime changes of script options --- player/lua/ytdl_hook.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'player') 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) -- cgit v1.2.3