From 633147c9596177d42d9651aaf101a426d754cb7c Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 22 Feb 2015 17:32:42 -0300 Subject: ytdl: add "--ytdl-params" option This option allows the user to pass non-supported options directly to youtube-dl, such as "--proxy URL", "--username USERNAME" and '--password PASSWORD". There is no sanity checking so it's possible to break things (i.e. if you pass "--version" mpv exits with random JSON error). Signed-off-by: wm4 --- options/options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 5276a6f6bf..1dd9eaffb2 100644 --- a/options/options.c +++ b/options/options.c @@ -133,6 +133,7 @@ const m_option_t mp_opts[] = { 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_KEYVALUELIST("ytdl-raw-options", lua_ytdl_raw_options, CONF_GLOBAL), OPT_FLAG("load-scripts", auto_load_scripts, CONF_GLOBAL), #endif @@ -716,6 +717,7 @@ const struct MPOpts mp_default_opts = { .lua_load_osc = 1, .lua_load_ytdl = 1, .lua_ytdl_format = NULL, + .lua_ytdl_raw_options = NULL, #endif .auto_load_scripts = 1, .loop_times = 1, -- cgit v1.2.3