]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/espn.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / espn.py
index ba0a98beabe42c85ba4254cee3a4fd8002e973a4..f4b0134ab8d7c1bc97aa6e03166a0a790bb801a1 100644 (file)
@@ -162,7 +162,6 @@ def extract_source(source_url, source_id=None):
         links = clip.get('links', {})
         traverse_source(links.get('source', {}))
         traverse_source(links.get('mobile', {}))
-        self._sort_formats(formats)
 
         description = clip.get('caption') or clip.get('description')
         thumbnail = clip.get('thumbnail')
@@ -269,7 +268,6 @@ def _real_extract(self, url):
                     'url': item['url'],
                     'vcodec': 'none',
                 })
-        self._sort_formats(formats)
         return {
             'id': id,
             'title': data_json.get('title'),
@@ -400,7 +398,6 @@ def _real_extract(self, url):
             m3u8_url, headers = asset['stream'], {}
 
         formats, subtitles = self._extract_m3u8_formats_and_subtitles(m3u8_url, video_id, 'mp4', m3u8_id='hls')
-        self._sort_formats(formats)
 
         return {
             'id': video_id,