summaryrefslogtreecommitdiffstats
path: root/DOCS/man
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-23 13:11:41 +0200
committerwm4 <wm4@nowhere>2014-10-23 13:13:23 +0200
commit7e27663b7bdd92125dd221bf3dbb8f760681c9d7 (patch)
tree80ca65973071952e49a805081ab853436feedbcf /DOCS/man
parent5a3c6563e4df18c7ca2306d5f22a5a3ecbbeb8ce (diff)
downloadmpv-7e27663b7bdd92125dd221bf3dbb8f760681c9d7.tar.bz2
mpv-7e27663b7bdd92125dd221bf3dbb8f760681c9d7.tar.xz
command: add a "cached" mode to sub_add
This avoids reloading a subtitle if it was already added. In all cases, the subtitle is selected.
Diffstat (limited to 'DOCS/man')
-rw-r--r--DOCS/man/input.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 05cc9da562..9dc1cf0ea6 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -275,6 +275,13 @@ List of Input Commands
Don't select the subtitle. (Or in some special situations, let the
default stream selection mechanism decide.)
+ <cached>
+
+ Select the subtitle. If a subtitle with the same filename was already
+ added, that one is selected, instead of loading a duplicate entry.
+ (In this case, title/language are ignored, and if the was changed since
+ it was loaded, these changes won't be reflected.)
+
The ``title`` argument sets the track title in the UI.
The ``lang`` argument sets the track language, and can also influence