Skip to content

Conversation

@afourney
Copy link
Member

This PR attempts to minimize guessing of mimetypes, etc. when guesses are compatible.

Essentially, it uses magika and charset_normalizer to guess the StreamInfo. If the guess is compatible with whatever minimal StreamInfo was already provided (no fields contradict), then we combine them and use this as the only guess. If they are not compatible, then we add both -- preferring the information provided by the application/user.

@afourney afourney merged commit 8f8e58c into main Mar 10, 2025
3 checks passed
@afourney afourney deleted the compatible_guesses branch March 10, 2025 22:30
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.

2 participants