mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 11:49:15 +02:00
See #170: fixed several feed parsing issues
This commit is contained in:
parent
b43d0f7009
commit
a119a5d90a
4 changed files with 23 additions and 7 deletions
|
@ -396,3 +396,8 @@ def get_mimetype_from_ext(path):
|
|||
"gif": "image/gif",
|
||||
}
|
||||
return match.get(ext)
|
||||
|
||||
|
||||
def get_audio_mimetype(mt):
|
||||
aliases = {"audio/x-mp3": "audio/mpeg", "audio/mpeg3": "audio/mpeg"}
|
||||
return aliases.get(mt, mt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue