aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-01-25 01:01:15 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-01-25 01:01:15 +0800
commita0d8d704df5ff3098b86e741f238d53de1711198 (patch)
tree6b888f11612ff6393a22d78e456a4e380ff16344
parentf6861ec96f33722c9b1ba4f2d8ca307dcbe64ac1 (diff)
downloadyoutube-dl-a0d8d704df5ff3098b86e741f238d53de1711198.tar.xz
[utils] Reorder items in mimetype2ext alphabetically
-rw-r--r--youtube_dl/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 178d1dcb3..c63b61598 100644
--- 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)