]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/imgur.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / imgur.py
index a3bb476154a28bdc159c2c8c927ccfda207e3bb7..bff6ed57f5b0c878c3f2900380b1ee2a30fde2fb 100644 (file)
@@ -84,8 +84,6 @@ def _real_extract(self, url):
                 },
             })
 
-        self._sort_formats(formats)
-
         return {
             'id': video_id,
             'formats': formats,
@@ -138,7 +136,7 @@ def _real_extract(self, url):
         return self.url_result('http://imgur.com/%s' % gallery_id, ImgurIE.ie_key(), gallery_id)
 
 
-class ImgurAlbumIE(ImgurGalleryIE):
+class ImgurAlbumIE(ImgurGalleryIE):  # XXX: Do not subclass from concrete IE
     IE_NAME = 'imgur:album'
     _VALID_URL = r'https?://(?:i\.)?imgur\.com/a/(?P<id>[a-zA-Z0-9]+)'