]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/contv.py
[ie/youtube] Suppress "Unavailable videos are hidden" warning (#10159)
[yt-dlp.git] / yt_dlp / extractor / contv.py
index 84b462d40a4dc0e6f8d17113e921e1d528197585..63d760a39ba8fbe9280e976b9e6cd076e452c42c 100644 (file)
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
 from .common import InfoExtractor
 from ..utils import (
     float_or_none,
@@ -72,13 +69,11 @@ def _real_extract(self, url):
                 'url': media_mp4_url,
             })
 
-        self._sort_formats(formats)
-
         subtitles = {}
         captions = m_details.get('captions') or {}
         for caption_url in captions.values():
             subtitles.setdefault('en', []).append({
-                'url': caption_url
+                'url': caption_url,
             })
 
         thumbnails = []