mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:29:16 +02:00
Fix #1093: mimetype detection issue that broke transcoding on certain tracks
This commit is contained in:
parent
c1e2f16de1
commit
85bc8d93e8
4 changed files with 34 additions and 6 deletions
|
@ -22,6 +22,8 @@ def guess_mimetype(f):
|
|||
mt, _ = mimetypes.guess_type(f.name)
|
||||
if mt:
|
||||
t = mt
|
||||
else:
|
||||
t = EXTENSION_TO_MIMETYPE.get(f.name.split(".")[-1])
|
||||
return t
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue