]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[letv] Update M3U8's MIME type
authorYen Chi Hsuan <yan12125@gmail.com>
Sun, 18 Oct 2015 11:19:46 +0000 (19:19 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 18 Oct 2015 11:19:46 +0000 (19:19 +0800)
The new MIME type appears in the following places:
https://www.iana.org/assignments/media-types/media-types.xhtml#application
https://hg.python.org/cpython/file/tip/Lib/mimetypes.py

youtube_dl/extractor/letv.py

index 9ebbc8089e68459a8f39c9df0368ae8734775ea2..effd9eb922c5b164fc5a8b622b8f780b0139d0a9 100644 (file)
@@ -162,7 +162,7 @@ class LetvIE(InfoExtractor):
                 m3u8_data = self.decrypt_m3u8(req.read())
 
                 url_info_dict = {
-                    'url': encode_data_uri(m3u8_data, 'application/x-mpegURL'),
+                    'url': encode_data_uri(m3u8_data, 'application/vnd.apple.mpegurl'),
                     'ext': determine_ext(dispatch[format_id][1]),
                     'format_id': format_id,
                     'protocol': 'm3u8',