]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/bloomberg.py
[ie/mlbtv] Fix extraction (#10296)
[yt-dlp.git] / yt_dlp / extractor / bloomberg.py
index c842c342ca659fc239c9e9f69fb84a68e4bc3c54..ec6b7a86eb1f95aff29020575805a8c6bb80750c 100644 (file)
@@ -55,7 +55,7 @@ def _real_extract(self, url):
         title = re.sub(': Video$', '', self._og_search_title(webpage))
 
         embed_info = self._download_json(
-            'http://www.bloomberg.com/multimedia/api/embed?id=%s' % video_id, video_id)
+            f'http://www.bloomberg.com/multimedia/api/embed?id={video_id}', video_id)
         formats = []
         for stream in embed_info['streams']:
             stream_url = stream.get('url')
@@ -67,7 +67,6 @@ def _real_extract(self, url):
             else:
                 formats.extend(self._extract_f4m_formats(
                     stream_url, video_id, f4m_id='hds', fatal=False))
-        self._sort_formats(formats)
 
         return {
             'id': video_id,