See #170: fixed several feed parsing issues

This commit is contained in:
Eliot Berriot 2020-03-13 15:26:11 +01:00
parent b43d0f7009
commit a119a5d90a
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
4 changed files with 23 additions and 7 deletions

View file

@ -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)