This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mimetypes cannot detect mime of mka files
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: andrei.avk, kj, manujchandra
Priority: normal Keywords:

Created on 2021-09-21 07:49 by manujchandra, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
Screenshot from 2021-09-21 13-10-33.png manujchandra, 2021-09-21 07:49
Messages (2)
msg402290 - (view) Author: Manuj Chandra (manujchandra) Date: 2021-09-21 07:49
The mimetypes library cannot detect mime of mka files. It returns None instead of audio.

mp3 and mkv are working. Only mka is not working.
msg403666 - (view) Author: Andrei Kulakov (andrei.avk) * (Python triager) Date: 2021-10-11 18:22
mkv (matroska) is not registered with IANA here: http://www.iana.org/assignments/media-types/media-types.xhtml

Therefore according to the comment in mimetypes.py, it should not be added.

Also note that .mkv is also not in mimetypes.py, so it's being loaded from your system's mime types, so if you want .mka to work as well, make sure it's registered on your system rather than in Python's mimetypes.py .

I will close this as not a bug, please comment here if you think it should stay open.
History
Date User Action Args
2022-04-11 14:59:50adminsetstatus: pending -> open
github: 89416
2021-10-11 18:23:24andrei.avksetstatus: open -> pending
2021-10-11 18:23:07andrei.avksetnosy: + kj
2021-10-11 18:22:48andrei.avksetnosy: + andrei.avk
messages: + msg403666
2021-09-21 07:49:08manujchandracreate