1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-13 16:08:29 +00:00
This commit is contained in:
Nil Admirari 2025-08-12 18:27:08 +03:00 committed by GitHub
commit 8475a4ca99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -856,6 +856,10 @@ def _preset_alias_callback(option, opt_str, value, parser):
dest='format_sort', default=[], type='str', action='callback',
callback=_list_from_options_callback, callback_kwargs={'append': -1},
help='Sort the formats by the fields given, see "Sorting Formats" for more details')
video_format.add_option(
'--format-sort-reset',
dest='format_sort', action='store_const', const=[],
help='Resets format sort order to yt-dlp default')
video_format.add_option(
'--format-sort-force', '--S-force',
action='store_true', dest='format_sort_force', metavar='FORMAT', default=False,