fixed support for flac files

This commit is contained in:
Abubakar Abid 2022-01-17 12:49:22 -06:00
parent 6fa0fe9709
commit 0bde0f1f03

View File

@ -40,7 +40,9 @@ def encode_url_or_file_to_base64(path):
def get_mimetype(filename):
mimetype = mimetypes.guess_type(filename)[0]
if mimetype is not None:
mimetype = mimetype.replace("x-wav", "wav")
mimetype = mimetype.replace(
"x-wav", "wav").replace(
"x-flac", "flac")
return mimetype
def get_extension(encoding):