mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 03:52:22 +02:00
command: change the default action for rescan_external_files
Now the rescan_external_files command will by default reselect the audio and subtitle streams. This should be more intuitive. Client API users and Lua scripts might break, but can be fixed in a backward-compatible way by setting the mode explicitly.
This commit is contained in:
parent
0c0c8cd44e
commit
9795216d8a
@ -405,14 +405,14 @@ List of Input Commands
|
|||||||
|
|
||||||
The ``mode`` argument is one of the following:
|
The ``mode`` argument is one of the following:
|
||||||
|
|
||||||
<keep-selection> (default)
|
<reselect> (default)
|
||||||
Do not change current track selections.
|
Select the default audio and subtitle streams, which typically selects
|
||||||
|
|
||||||
<reselect>
|
|
||||||
Select the default audio and video streams, which typically selects
|
|
||||||
external files with highest preference. (The implementation is not
|
external files with highest preference. (The implementation is not
|
||||||
perfect, and could be improved on request.)
|
perfect, and could be improved on request.)
|
||||||
|
|
||||||
|
<keep-selection>
|
||||||
|
Do not change current track selections.
|
||||||
|
|
||||||
|
|
||||||
Input Commands that are Possibly Subject to Change
|
Input Commands that are Possibly Subject to Change
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
@ -210,7 +210,7 @@ const struct mp_cmd_def mp_cmds[] = {
|
|||||||
{ MP_CMD_AUDIO_RELOAD, "audio_reload", { OARG_INT(-1) } },
|
{ MP_CMD_AUDIO_RELOAD, "audio_reload", { OARG_INT(-1) } },
|
||||||
|
|
||||||
{ MP_CMD_RESCAN_EXTERNAL_FILES, "rescan_external_files", {
|
{ MP_CMD_RESCAN_EXTERNAL_FILES, "rescan_external_files", {
|
||||||
OARG_CHOICE(0, ({"keep-selection", 0},
|
OARG_CHOICE(1, ({"keep-selection", 0},
|
||||||
{"reselect", 1})),
|
{"reselect", 1})),
|
||||||
}},
|
}},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user