]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/theholetv.py
[ie/youtube] Suppress "Unavailable videos are hidden" warning (#10159)
[yt-dlp.git] / yt_dlp / extractor / theholetv.py
index f0a096d412e805b66f7415e92ac8603a9bd601aa..a3a7024288eb2caa0016db3162b96497d264e42d 100644 (file)
@@ -12,8 +12,8 @@ class TheHoleTvIE(InfoExtractor):
             'ext': 'mp4',
             'title': 'Сергей Орлов — Громкий вопрос',
             'thumbnail': 'https://assets-cdn.the-hole.tv/images/t8gan4n6zn627e7wni11b2uemqts',
-            'description': 'md5:45741a9202331f995d9fb76996759379'
-        }
+            'description': 'md5:45741a9202331f995d9fb76996759379',
+        },
     }]
 
     def _real_extract(self, url):
@@ -24,7 +24,6 @@ def _real_extract(self, url):
             r'(<div[^>]*\bdata-controller="player"[^>]*>)', webpage, 'video player'))
         formats, subtitles = self._extract_m3u8_formats_and_subtitles(
             player_attrs['data-player-source-value'], video_id, 'mp4')
-        self._sort_formats(formats)
 
         return {
             'id': video_id,
@@ -32,5 +31,5 @@ def _real_extract(self, url):
             'description': self._og_search_description(webpage),
             'thumbnail': player_attrs.get('data-player-poster-value'),
             'formats': formats,
-            'subtitles': subtitles
+            'subtitles': subtitles,
         }