projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6861ec
)
[utils] Reorder items in mimetype2ext alphabetically
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 24 Jan 2016 17:01:15 +0000
(
01:01
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 24 Jan 2016 17:01:15 +0000
(
01:01
+0800)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index 178d1dcb353c9cb68c874f6203a9f488250bf122..c63b61598ac421c99f86928093c8a38f0f57ca59 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-1828,11
+1828,11
@@
def mimetype2ext(mt):
_, _, res = mt.rpartition('/')
return {
- 'x-ms-wmv': 'wmv',
- 'x-mp4-fragmented': 'mp4',
- 'ttml+xml': 'ttml',
'3gpp': '3gp',
+ 'ttml+xml': 'ttml',
'x-flv': 'flv',
+ 'x-mp4-fragmented': 'mp4',
+ 'x-ms-wmv': 'wmv',
}.get(res, res)