Adding special handling for WMA file mimetype.

This commit is contained in:
Roland 2024-12-20 11:14:36 -07:00
parent eabe517b89
commit 808f46be5b
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -244,8 +244,10 @@ def _mimetype_suffix_map(path: Path, mimetype: str):
if mimetype == 'application/x-subrip':
# Fallback to old mimetype.
return 'text/srt'
if mimetype == 'application/zip' and path.suffix == '.docx':
if mimetype == 'application/zip' and suffix == '.docx':
return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
if mimetype == 'video/x-ms-asf' and suffix == '.wma':
return 'audio/x-ms-wma'
return mimetype