summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-19 18:51:53 +0100
committerwm4 <wm4@nowhere>2014-11-19 18:59:38 +0100
commit079ecd7f017be7528ab597e5db36042a0eecee0d (patch)
tree2518efcadb7d06971ef26b4de1636bfa1206b850 /options
parent0f7df894688d7d2d4b5745944d9b84aeb512f1ae (diff)
downloadmpv-079ecd7f017be7528ab597e5db36042a0eecee0d.tar.bz2
mpv-079ecd7f017be7528ab597e5db36042a0eecee0d.tar.xz
player: integrate ytdl_hook.lua
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 1f6e0ae377..6dbf4164e2 100644
--- a/options/options.c
+++ b/options/options.c
@@ -130,6 +130,7 @@ const m_option_t mp_opts[] = {
OPT_STRINGLIST("lua", lua_files, CONF_GLOBAL | M_OPT_FILE),
OPT_KEYVALUELIST("lua-opts", lua_opts, M_OPT_GLOBAL),
OPT_FLAG("osc", lua_load_osc, CONF_GLOBAL),
+ OPT_FLAG("ytdl", lua_load_ytdl, CONF_GLOBAL),
OPT_FLAG("load-scripts", auto_load_scripts, CONF_GLOBAL),
#endif
@@ -610,6 +611,7 @@ const struct MPOpts mp_default_opts = {
.osd_scale_by_window = 1,
#if HAVE_LUA
.lua_load_osc = 1,
+ .lua_load_ytdl = 0,
#endif
.auto_load_scripts = 1,
.loop_times = -1,
diff --git a/options/options.h b/options/options.h
index 94d78ac6a0..5885f689f8 100644
--- a/options/options.h
+++ b/options/options.h
@@ -61,6 +61,7 @@ typedef struct MPOpts {
char **lua_files;
char **lua_opts;
int lua_load_osc;
+ int lua_load_ytdl;
int auto_load_scripts;
struct m_obj_settings *audio_driver_list, *ao_defs;