Fix #473: ".None" extension when downloading Flac file

This commit is contained in:
Eliot Berriot 2018-11-19 22:20:09 +01:00
parent 742ee9bc9b
commit 837d6ad0e1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 22 additions and 2 deletions

View file

@ -33,6 +33,7 @@ AUDIO_EXTENSIONS_AND_MIMETYPE = [
("ogg", "audio/ogg"),
("mp3", "audio/mpeg"),
("flac", "audio/x-flac"),
("flac", "audio/flac"),
]
EXTENSION_TO_MIMETYPE = {ext: mt for ext, mt in AUDIO_EXTENSIONS_AND_MIMETYPE}