summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 6dbf4164e2..7f78d884a6 100644
--- a/options/options.c
+++ b/options/options.c
@@ -131,6 +131,7 @@ const m_option_t mp_opts[] = {
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_STRING("ytdl-format", lua_ytdl_format, CONF_GLOBAL),
OPT_FLAG("load-scripts", auto_load_scripts, CONF_GLOBAL),
#endif
@@ -612,6 +613,7 @@ const struct MPOpts mp_default_opts = {
#if HAVE_LUA
.lua_load_osc = 1,
.lua_load_ytdl = 0,
+ .lua_ytdl_format = NULL,
#endif
.auto_load_scripts = 1,
.loop_times = -1,
diff --git a/options/options.h b/options/options.h
index 5885f689f8..752d1f4801 100644
--- a/options/options.h
+++ b/options/options.h
@@ -62,6 +62,8 @@ typedef struct MPOpts {
char **lua_opts;
int lua_load_osc;
int lua_load_ytdl;
+ char *lua_ytdl_format;
+
int auto_load_scripts;
struct m_obj_settings *audio_driver_list, *ao_defs;