0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[twitter] Do not sort by codec

Closes #1431
This commit is contained in:
pukkandan 2021-10-26 21:14:13 +05:30
parent 0db3bae879
commit c35ada3360
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -485,7 +485,7 @@ def extract_from_video_info(media):
fmts, subs = self._extract_variant_formats(variant, twid)
subtitles = self._merge_subtitles(subtitles, subs)
formats.extend(fmts)
self._sort_formats(formats)
self._sort_formats(formats, ('res', 'br', 'size', 'proto')) # The codec of http formats are unknown
thumbnails = []
media_url = media.get('media_url_https') or media.get('media_url')