summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-05-09 23:31:33 +0200
committerwm4 <wm4@nowhere>2020-05-09 23:31:33 +0200
commitcaf228b21807423c28e2f5bde0dcd7dc981e3773 (patch)
tree27fcee079adbf5bf0f6674615e6094170bc2fafb /DOCS/man/options.rst
parent327302bdb97665f7a3f3eb813b1abe64a892e807 (diff)
downloadmpv-caf228b21807423c28e2f5bde0dcd7dc981e3773.tar.bz2
mpv-caf228b21807423c28e2f5bde0dcd7dc981e3773.tar.xz
player: make external subtitle auto-loading stricter
By default --sub-auto uses "exact". This was far from an "exact" match, because it added anything that started with the video filename (without extension), and seemed to end in something that looked like a language code. Make this stricter. "exact" still tolerate a language code, but the video's filename must come before it without any unknown extra characters. This may not load subtitles in some situations where it previously did, and where the user might think that the naming convention is such that it should be considered an exact match. The subtitle priority sorting seems a bit worthless. I suppose it may have some value in higher "fuzz" modes (like --sub-auto=fuzzy). Also remove the mysterious "prio += prio;" line. I probably shouldn't have checked, but it goes back to commit f16fa9d31 (2003), where someone wanted to "refine" the priority without changing the rest of the code or something. Mostly untested, so have fun. Fixes: #7702
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 0a96d18baf..431837e26a 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2423,7 +2423,8 @@ Subtitles
default.
:no: Don't automatically load external subtitle files.
- :exact: Load the media filename with subtitle file extension (default).
+ :exact: Load the media filename with subtitle file extension and possibly
+ language suffixes (default).
:fuzzy: Load all subs containing media filename.
:all: Load all subs in the current and ``--sub-file-paths`` directories.