[utils] Improve mimetype2ext
This commit is contained in:
parent
5e9e3d0f6b
commit
6562d34a8c
2 changed files with 10 additions and 1 deletions
|
@ -2148,7 +2148,7 @@ def mimetype2ext(mt):
|
|||
return ext
|
||||
|
||||
_, _, res = mt.rpartition('/')
|
||||
res = res.lower()
|
||||
res = res.split(';')[0].strip().lower()
|
||||
|
||||
return {
|
||||
'3gpp': '3gp',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue