Skip to content

.ass files give incorrect MIME types #120258

@rcombs

Description

@rcombs

Bug report

Bug description:

Advanced SubStation is a common subtitle format, with file usually having the extension .ass, and the .ass extension is not commonly used for AAC audio files. However, mimetypes currently gives audio/aac as the type for .ass files:

mimetypes.guess_type('test.ass') # -> ('audio/aac', None)

This appears to be due to this erroneous line:

'.ass' : 'audio/aac',

CPython versions tested on:

3.12

Operating systems tested on:

macOS

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions