mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding special handling for WMA file mimetype.
This commit is contained in:
parent
eabe517b89
commit
808f46be5b
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue