From cf8efe32351c745903cc3b3bf0b8bc0f33d5cfd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Wed, 19 Nov 2014 23:33:28 +0100 Subject: options: add --ytdl-format option for youtube-dl format It's passed with the '--format' option to youtube-dl. If it isn't set, we don't pass '--format best' so that youtube-dl can use the options from its configuration file. 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 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, -- cgit v1.2.3