projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2817b99
)
[utils] add mimetypes to determine manifest ext(m3u8, f4m, mpd)
author
Remita Amine
<remitamine@gmail.com>
Wed, 6 Jul 2016 08:06:28 +0000
(09:06 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Wed, 6 Jul 2016 08:06:28 +0000
(09:06 +0100)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index d302f39e471f2273e8aadfff93069560c7c8adf8..36d5b6c0f244c49526f9f6d2923ae9f40f1965ee 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-2097,6
+2097,7
@@
def mimetype2ext(mt):
return ext
_, _, res = mt.rpartition('/')
+ res = res.lower()
return {
'3gpp': '3gp',
@@
-2108,6
+2109,12
@@
def mimetype2ext(mt):
'x-flv': 'flv',
'x-mp4-fragmented': 'mp4',
'x-ms-wmv': 'wmv',
+ 'mpegurl': 'm3u8',
+ 'x-mpegurl': 'm3u8',
+ 'vnd.apple.mpegurl': 'm3u8',
+ 'dash+xml': 'mpd',
+ 'f4m': 'f4m',
+ 'f4m+xml': 'f4m',
}.get(res, res)