From b67a3e465b7453c0558e9e3e4968bae8dd647244 Mon Sep 17 00:00:00 2001 From: Joel Puig Rubio Date: Sun, 8 Jun 2025 07:03:30 +0200 Subject: [PATCH] Improve subtitle selection (#53) * Improve subtitle selection * fix merge --------- Co-authored-by: Simon --- mkdocs/docs/settings/application.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs/docs/settings/application.md b/mkdocs/docs/settings/application.md index 2fba7d7..e9314db 100644 --- a/mkdocs/docs/settings/application.md +++ b/mkdocs/docs/settings/application.md @@ -60,7 +60,7 @@ This saves the thumbnail into the media file by passing `--embed-thumbnail` to y ## Subtitles ### Subtitle Language -Select the subtitle language you like to download. Add a comma separated list for multiple languages. For Chinese you must specify `zh-Hans` or `zh-Hant`, specifying "zh" is invalid, otherwise the subtitle won't download successfully. +Select the subtitle languages you like to download. Add a comma separated list for multiple languages (can be regex) or `all`, e.g. `en.*,ja` (where `en.*` is a regex pattern that matches `en` followed by 0 or more of any character). You can prefix the language code with a `-` to exclude it from the requested languages, e.g. `all,-fr`. For Chinese you must specify `zh-Hans` or `zh-Hant`, specifying "zh" is invalid, otherwise the subtitle won't download successfully. However, you can use `zh.*` to get both. Check [IANA's language subtag registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) for the right language code. ### Enable Auto Generated This will fallback to from YouTube auto generated subtitles if subtitles from the uploader are not available. Auto generated subtitles are usually less accurate, particularly for auto translated tracks.