Skip to content

Added magic to fix mimes not working for arbitary video files. - #773

Draft
Lachee wants to merge 5 commits into
rr-:masterfrom
Lachee:feat-fixed-mimes
Draft

Added magic to fix mimes not working for arbitary video files.#773
Lachee wants to merge 5 commits into
rr-:masterfrom
Lachee:feat-fixed-mimes

Conversation

@Lachee

@Lachee Lachee commented Jun 28, 2026

Copy link
Copy Markdown

This properly fixes issue #257 by utilising the built in mimetypes package for extensions, and adding the python-magic library for mime-detection based on content.

I was finding there was a lot of video types that were still not being handled correctly by the hand rolled implementation, and i feel it would be more reliable and secure to use a package specifically designed to discern file formats.

@Lachee
Lachee marked this pull request as draft June 28, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant