]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/mediaset.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / mediaset.py
index ebe894f74033814a249e20d8b757161d6f51a11f..61bdb2a3f1de9d8e66b094f86f6b3973197de2a3 100644 (file)
@@ -247,8 +247,6 @@ def _real_extract(self, url):
         if (first_e or geo_e) and not formats:
             raise geo_e or first_e
 
-        self._sort_formats(formats)
-
         feed_data = self._download_json(
             'https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs-v2/guid/-/' + guid,
             guid, fatal=False)
@@ -286,7 +284,7 @@ def _real_extract(self, url):
         return info
 
 
-class MediasetShowIE(MediasetIE):
+class MediasetShowIE(MediasetIE):  # XXX: Do not subclass from concrete IE
     _VALID_URL = r'''(?x)
                     (?:
                         https?://