]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/abc.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / abc.py
index 03f10ab23d6c218a6ba256772bb076c1a8855742..0ca76b85a8d4ff3cbb85ba3994f270f967c441e6 100644 (file)
@@ -155,8 +155,6 @@ def _real_extract(self, url):
                 'format_id': format_id
             })
 
-        self._sort_formats(formats)
-
         return {
             'id': video_id,
             'title': self._og_search_title(webpage),
@@ -221,7 +219,6 @@ def tokenize_url(url, token):
                 entry_protocol='m3u8_native', m3u8_id='hls', fatal=False)
             if formats:
                 break
-        self._sort_formats(formats)
 
         subtitles = {}
         src_vtt = stream.get('captions', {}).get('src-vtt')