]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/nhk.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / nhk.py
index 517660ef107270cf796959e12f28fce98ce44b57..59702b247ee57cca283b1635f656d00e1804f15b 100644 (file)
@@ -78,7 +78,6 @@ def get_clean_field(key):
                     m3u8_id='hls', fatal=False)
                 for f in info['formats']:
                     f['language'] = lang
-                self._sort_formats(info['formats'])
             else:
                 info.update({
                     '_type': 'url_transparent',
@@ -240,7 +239,6 @@ def _real_extract(self, url):
         formats = self._extract_m3u8_formats(
             f'https://nhks-vh.akamaihd.net/i/das/{video_id[0:8]}/{video_id}_V_000.f4v/master.m3u8',
             video_id, ext='mp4', m3u8_id='hls')
-        self._sort_formats(formats)
 
         duration = parse_duration(base_values.get('r_duration'))