-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mimetypes cannot detect mime of mka files #89416
Comments
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. |
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. |
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) |
Co-authored-by: Zachary Ware <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: