You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
manujchandra commentedon Sep 21, 2021
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.
akulakov commentedon Oct 11, 2021
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.
hugovk commentedon Nov 4, 2024
https://www.iana.org/assignments/media-types/media-types.xhtml now lists:
Where RFC 9559 was published in October 2024.
Please see PR #126412.
(cc @manujchandra)
gh-89416: Add RFC 9559 MIME types for Matroska formats (#126412)
pythongh-89416: Add RFC 9559 MIME types for Matroska formats (python#…
pythongh-89416: Add RFC 9559 MIME types for Matroska formats (python#…