[twitter] Do not sort by codec

Closes #1431
pull/1386/head
pukkandan 3 years ago
parent 0db3bae879
commit c35ada3360
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -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')

Loading…
Cancel
Save