aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-09-02 22:57:48 +0700
committerSergey M․ <dstftw@gmail.com>2016-09-02 22:57:48 +0700
commit6562d34a8cbdb93de77a8042f7409ebe31e3e3e4 (patch)
treea33232936d6f43086435f04ca626d8df673d3712 /youtube_dl
parent5e9e3d0f6bf2055c557f360758d6d7eb146edcba (diff)
[utils] Improve mimetype2ext
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 1091f17f3..904f23fd7 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -2148,7 +2148,7 @@ def mimetype2ext(mt):
return ext
_, _, res = mt.rpartition('/')
- res = res.lower()
+ res = res.split(';')[0].strip().lower()
return {
'3gpp': '3gp',