]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/cctv.py
[extractor] Deprecate `_sort_formats`
[yt-dlp.git] / yt_dlp / extractor / cctv.py
index 9b8612138b049a5d304e0ce66aec8b410e24b9fb..466bdfb7cc635e0b0e08beecd598a2318d80c12e 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 import re
 
 from .common import InfoExtractor
@@ -162,7 +159,8 @@ def _real_extract(self, url):
                         'url': video_url,
                         'format_id': 'http',
                         'quality': quality,
-                        'source_preference': -10
+                        # Sample clip
+                        'preference': -10
                     })
 
         hls_url = try_get(data, lambda x: x['hls_url'], compat_str)
@@ -172,8 +170,6 @@ def _real_extract(self, url):
                 hls_url, video_id, 'mp4', entry_protocol='m3u8_native',
                 m3u8_id='hls', fatal=False))
 
-        self._sort_formats(formats)
-
         uploader = data.get('editer_name')
         description = self._html_search_meta(
             'description', webpage, default=None)