Skip to content

gh-120258: Correct MIME type for .ass files#120252

Closed
rcombs wants to merge 2 commits into
python:mainfrom
rcombs:patch-1
Closed

gh-120258: Correct MIME type for .ass files#120252
rcombs wants to merge 2 commits into
python:mainfrom
rcombs:patch-1

Conversation

@rcombs

@rcombs rcombs commented Jun 8, 2024

Copy link
Copy Markdown

Advanced SubStation is a common subtitle format, and the ".ass" extension is not commonly used for AAC audio files.

@rcombs rcombs requested a review from a team as a code owner June 8, 2024 02:21
@ghost

This comment was marked as resolved.

@bedevere-app

This comment was marked as resolved.

@aisk

This comment was marked as resolved.

rcombs and others added 2 commits June 8, 2024 00:31
Advanced SubStation is a common subtitle format, and the ".ass" extension is not commonly used for AAC audio files.
@rcombs rcombs changed the title Correct MIME type for .ass files gh-120252: Correct MIME type for .ass files Jun 8, 2024
@rcombs rcombs changed the title gh-120252: Correct MIME type for .ass files gh-120258: Correct MIME type for .ass files Jun 8, 2024
@rcombs

This comment was marked as resolved.

@aisk

aisk commented Jun 8, 2024

Copy link
Copy Markdown
Member

I did some research and found that although .ass subtitle files are more common these days, .ass is also an IANA registered file type for the audio type: https://www.iana.org/assignments/media-types/audio/aac. So, I think we can't change it directly.

Moreover, the mimetypes package not only uses this predefined map in the source code, it also uses the system's mimetype database to get the associated mimetypes from the file extension, and Debian uses data from IANA: https://salsa.debian.org/debian/media-types/-/blob/master/mime.types#L1681

@picnixz

picnixz commented Oct 25, 2025

Copy link
Copy Markdown
Member

Closing as per #120258 (comment).

@picnixz picnixz closed this Oct 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants