From d26ba961d05a2de165fa87c41d705ed3db00231b Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 16 Feb 2015 22:06:41 +0100 Subject: command: add rescan_external_files Requested. Hopefully will be useful for things that download and add external subtitles on demand. Or something. Closes #1586. --- input/cmd_list.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'input/cmd_list.c') diff --git a/input/cmd_list.c b/input/cmd_list.c index 28c89884e7..380e241b60 100644 --- a/input/cmd_list.c +++ b/input/cmd_list.c @@ -199,6 +199,11 @@ const struct mp_cmd_def mp_cmds[] = { { MP_CMD_AUDIO_REMOVE, "audio_remove", { OARG_INT(-1) } }, { MP_CMD_AUDIO_RELOAD, "audio_reload", { OARG_INT(-1) } }, + { MP_CMD_RESCAN_EXTERNAL_FILES, "rescan_external_files", { + OARG_CHOICE(0, ({"keep-selection", 0}, + {"reselect", 1})), + }}, + {0} }; -- cgit v1.2.3