]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/yahoo.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / yahoo.py
index 01a859556a49282672c146a9bbcae9e164fb850c..a69715b7c14546f1dab4a01dfd2dd85a1e552668 100644 (file)
@@ -241,8 +241,6 @@ def _extract_yahoo_video(self, video_id, country):
         if not formats and msg == 'geo restricted':
             self.raise_geo_restricted(metadata_available=True)
 
-        self._sort_formats(formats)
-
         thumbnails = []
         for thumb in video.get('thumbnails', []):
             thumb_url = thumb.get('url')
@@ -498,7 +496,6 @@ def _extract_formats(self, json_data, content_id):
                     'tbr': int_or_none(vid.get('bitrate')),
                 })
         self._remove_duplicate_formats(formats)
-        self._sort_formats(formats)
 
         return formats