mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-19 10:15:16 +00:00
Merge 6248e526cf
into a06bb58679
This commit is contained in:
commit
44783aa6cd
15
README.md
15
README.md
@ -844,14 +844,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.
|
--list-subs List available subtitles of each video.
|
||||||
Simulate unless --no-simulate is used
|
Simulate unless --no-simulate is used
|
||||||
--sub-format FORMAT Subtitle format; accepts formats preference,
|
--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
|
--sub-langs LANGS Languages of the subtitles to download (can
|
||||||
be regex) or "all" separated by commas, e.g.
|
be regex) or "all" separated by commas, e.g.
|
||||||
--sub-langs "en.*,ja". You can prefix the
|
--sub-langs "en.*,ja". Example: "en.*" will
|
||||||
language code with a "-" to exclude it from
|
download both subtitles "en" and "en-GB",
|
||||||
the requested languages, e.g. --sub-langs
|
while "en" will only download the former.
|
||||||
all,-live_chat. Use --list-subs for a list
|
You can prefix the language code with a "-"
|
||||||
of available language tags
|
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:
|
## Authentication Options:
|
||||||
-u, --username USERNAME Login with this account ID
|
-u, --username USERNAME Login with this account ID
|
||||||
|
@ -899,13 +899,14 @@ def create_parser():
|
|||||||
subtitles.add_option(
|
subtitles.add_option(
|
||||||
'--sub-format',
|
'--sub-format',
|
||||||
action='store', dest='subtitlesformat', metavar='FORMAT', default='best',
|
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(
|
subtitles.add_option(
|
||||||
'--sub-langs', '--srt-langs',
|
'--sub-langs', '--srt-langs',
|
||||||
action='callback', dest='subtitleslangs', metavar='LANGS', type='str',
|
action='callback', dest='subtitleslangs', metavar='LANGS', type='str',
|
||||||
default=[], callback=_list_from_options_callback,
|
default=[], callback=_list_from_options_callback,
|
||||||
help=(
|
help=(
|
||||||
'Languages of the subtitles to download (can be regex) or "all" separated by commas, e.g. --sub-langs "en.*,ja". '
|
'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. '
|
'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'))
|
'Use --list-subs for a list of available language tags'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user