]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/twitch.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / twitch.py
index 975e09c30209b726fdbdb978293b556e371bd477..c59d1cf1711596351e1b5ab45723e8a17cc5677f 100644 (file)
@@ -133,7 +133,6 @@ def _prefer_source(self, formats):
                         'quality': 10,
                         'format_note': 'Source',
                     })
-        self._sort_formats(formats)
 
     def _download_base_gql(self, video_id, ops, note, fatal=True):
         headers = {
@@ -1144,7 +1143,6 @@ def _real_extract(self, url):
                 'height': int_or_none(option.get('quality')),
                 'fps': int_or_none(option.get('frameRate')),
             })
-        self._sort_formats(formats)
 
         thumbnails = []
         for thumbnail_id in ('tiny', 'small', 'medium'):