[utils] Improve mimetype2ext

This commit is contained in:
Sergey M․
2016-09-02 22:57:48 +07:00
parent 5e9e3d0f6b
commit 6562d34a8c
2 changed files with 10 additions and 1 deletions

View File

@ -2148,7 +2148,7 @@ def mimetype2ext(mt):
return ext
_, _, res = mt.rpartition('/')
res = res.lower()
res = res.split(';')[0].strip().lower()
return {
'3gpp': '3gp',