1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

[extractor] Deprecate _sort_formats

This commit is contained in:
pukkandan
2022-11-17 10:40:03 +05:30
parent 784320c98c
commit 9f14daf22b
579 changed files with 69 additions and 918 deletions

View File

@ -186,15 +186,13 @@ class TwitCastingIE(InfoExtractor):
'protocol': 'websocket_frag',
})
self._sort_formats(formats, ('source',))
infodict = {
'formats': formats
'formats': formats,
'_format_sort_fields': ('source', ),
}
elif len(m3u8_urls) == 1:
formats = self._extract_m3u8_formats(
m3u8_urls[0], video_id, 'mp4', headers=self._M3U8_HEADERS)
self._sort_formats(formats)
infodict = {
# No problem here since there's only one manifest
'formats': formats,