[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 @@ class TwitterIE(TwitterBaseIE):
fmts, subs = self._extract_variant_formats(variant, twid) fmts, subs = self._extract_variant_formats(variant, twid)
subtitles = self._merge_subtitles(subtitles, subs) subtitles = self._merge_subtitles(subtitles, subs)
formats.extend(fmts) formats.extend(fmts)
self._sort_formats(formats) self._sort_formats(formats, ('res', 'br', 'size', 'proto')) # The codec of http formats are unknown
thumbnails = [] thumbnails = []
media_url = media.get('media_url_https') or media.get('media_url') media_url = media.get('media_url_https') or media.get('media_url')