]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[bloomberg] Modernize
authorSergey M․ <dstftw@gmail.com>
Sat, 28 Nov 2015 16:40:29 +0000 (22:40 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 28 Nov 2015 16:40:29 +0000 (22:40 +0600)
youtube_dl/extractor/bloomberg.py

index 8b2f9421108cd0ce03b958ec49b27dbc5400cb14..b6197d3f13fe8e6e4d5f38b201285baa5c8c4b8c 100644 (file)
@@ -35,7 +35,7 @@ class BloombergIE(InfoExtractor):
             'http://www.bloomberg.com/api/embed?id=%s' % video_id, video_id)
         formats = []
         for stream in embed_info['streams']:
-            if stream["muxing_format"] == "TS":
+            if stream['muxing_format'] == 'TS':
                 formats.extend(self._extract_m3u8_formats(stream['url'], video_id))
             else:
                 formats.extend(self._extract_f4m_formats(stream['url'], video_id))