Title: mimetypes cannot detect mime of mka files
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.9
Status: pending 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 2021-10-11 18:23 by andrei.avk.

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:

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

Also note that .mkv is also not in, 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 .

I will close this as not a bug, please comment here if you think it should stay open.
Date User Action Args
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