Compare commits

..

No commits in common. "77ec2bbdde330578f9a2a6cff549a58bbbd0acc5" and "1003c88069723115c662d31cc951470a8d56cbe9" have entirely different histories.

View File

@ -151,11 +151,10 @@ class _YoutubeDLHelpFormatter(optparse.IndentedHelpFormatter):
_PRESET_ALIASES = {
'mp3': ['-f', 'ba[acodec^=mp3]/ba/b', '-x', '--audio-format', 'mp3'],
'aac': ['-f', 'ba[acodec^=aac]/ba[acodec^=mp4a.40.]/ba/b', '-x', '--audio-format', 'aac'],
'mp4': ['--merge-output-format', 'mp4', '--remux-video', 'mp4', '-S', 'vcodec:h264,lang,quality,res,fps,hdr:12,acodec:aac'],
'mkv': ['--merge-output-format', 'mkv', '--remux-video', 'mkv'],
'sleep': ['--sleep-subtitles', '5', '--sleep-requests', '0.75', '--sleep-interval', '10', '--max-sleep-interval', '20'],
'mp3': ['-f', 'ba[acodec=mp3]/ba/b', '-x', '--audio-format', 'mp3'],
'aac': ['-f', 'ba[acodec*=aac]/ba[acodec^=mp4a.40.]/ba/b', '-x', '--audio-format', 'aac'],
'mp4': ['--merge-output-format', 'mp4', '--remux', 'mp4', '-S', 'vcodec:h264,lang,quality,res,fps,hdr:12,acodec:aac'],
'mkv': ['--merge-output-format', 'mkv', '--remux', 'mkv'],
}
@ -228,7 +227,7 @@ class _YoutubeDLOptionParser(optparse.OptionParser):
assert formatter, 'Formatter can not be None'
formatted_help = super().format_option_help(formatter=formatter)
formatter.indent()
heading = formatter.format_heading('Preset Aliases')
heading = formatter.format_heading('Preset aliases')
formatter.indent()
result = []
for name, args in _PRESET_ALIASES.items():
@ -555,10 +554,10 @@ def create_parser():
metavar='PRESET', dest='_', type='str',
action='callback', callback=_preset_alias_callback,
help=(
'Applies a predefined set of options. e.g. --preset-alias mp3. '
'Applies a predefined preset. e.g. --preset-alias mp3. '
f'The following presets are available: {", ".join(_PRESET_ALIASES)}. '
'See the "Preset Aliases" section at the end for more info. '
'This option can be used multiple times'))
'See the "Preset aliases" section at the end for more infos. '
'This option can be used multiple times.'))
network = optparse.OptionGroup(parser, 'Network Options')
network.add_option(