1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 19:43:30 +01:00

[letv] Update M3U8's MIME type

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
This commit is contained in:
Yen Chi Hsuan 2015-10-18 19:19:46 +08:00
parent 8b172c2e10
commit 05a3879f1c

View File

@ -162,7 +162,7 @@ class LetvIE(InfoExtractor):
m3u8_data = self.decrypt_m3u8(req.read()) m3u8_data = self.decrypt_m3u8(req.read())
url_info_dict = { 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]), 'ext': determine_ext(dispatch[format_id][1]),
'format_id': format_id, 'format_id': format_id,
'protocol': 'm3u8', 'protocol': 'm3u8',