]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/appletrailers.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / appletrailers.py
index 6b63f070d6ac23b1406072934230136eb27cd3e2..2e0b0a8c932b5690ea12e13249febd9251e729fd 100644 (file)
@@ -120,7 +120,6 @@ def _real_extract(self, url):
                             'height': int_or_none(size_data.get('height')),
                             'language': version[:2],
                         })
-                self._sort_formats(formats)
 
                 entries.append({
                     'id': movie + '-' + re.sub(r'[^a-zA-Z0-9]', '', clip_title).lower(),
@@ -185,8 +184,6 @@ def _clean_json(m):
                     'height': int_or_none(format['height']),
                 })
 
-            self._sort_formats(formats)
-
             playlist.append({
                 '_type': 'video',
                 'id': video_id,