This commit is contained in:
Mikko Vedru 2024-04-28 16:15:30 +05:30 committed by GitHub
commit 1045ead57f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

View File

@ -839,14 +839,17 @@ If you fork the project on GitHub, you can run your fork's [build workflow](.git
--list-subs List available subtitles of each video.
Simulate unless --no-simulate is used
--sub-format FORMAT Subtitle format; accepts formats preference,
e.g. "srt" or "ass/srt/best"
separated by "/" e.g. "srt" or "ass/srt/best"
--sub-langs LANGS Languages of the subtitles to download (can
be regex) or "all" separated by commas, e.g.
--sub-langs "en.*,ja". You can prefix the
language code with a "-" to exclude it from
the requested languages, e.g. --sub-langs
all,-live_chat. Use --list-subs for a list
of available language tags
--sub-langs "en.*,ja". Example: "en.*" will
download both subtitles "en" and "en-GB",
while "en" will only download the former.
You can prefix the language code with a "-"
to exclude it from the requested languages,
e.g. --sub-langs all,-live_chat. Use
--list-subs for a list of available
language tags
## Authentication Options:
-u, --username USERNAME Login with this account ID

View File

@ -897,13 +897,14 @@ def create_parser():
subtitles.add_option(
'--sub-format',
action='store', dest='subtitlesformat', metavar='FORMAT', default='best',
help='Subtitle format; accepts formats preference, e.g. "srt" or "ass/srt/best"')
help='Subtitle format; accepts formats preference, separated by "/" e.g. "srt" or "ass/srt/best"')
subtitles.add_option(
'--sub-langs', '--srt-langs',
action='callback', dest='subtitleslangs', metavar='LANGS', type='str',
default=[], callback=_list_from_options_callback,
help=(
'Languages of the subtitles to download (can be regex) or "all" separated by commas, e.g. --sub-langs "en.*,ja". '
'Example: "en.*" will download both subtitles "en" and "en-GB", while "en" will only download the former. '
'You can prefix the language code with a "-" to exclude it from the requested languages, e.g. --sub-langs all,-live_chat. '
'Use --list-subs for a list of available language tags'))