markov2 / perl5-MIME-Types

Definition of MIME types
http://perl.overmeer.net/CPAN
4 stars 1 forks source link

mimeType does not return "video/(x-)?webm" for webm extension #13

Closed Rikkuru closed 2 years ago

Rikkuru commented 2 years ago

Hello! I see that there were some changes with webm and webp formats. For some reason i cant get mime type for "webm" extension in VERSION 2.21

One-liner:

perl -e 'use MIME::Types; my $mt = MIME::Types->new; print($mt->mimeTypeOf("webm"))'

I expected video/webm or video/x-webm

webp returns "image/x-webp" as expected

PS: i noticed a suspicious change in this line (video changed to image for webm) but i don't understand this module well enough to be sure. https://github.com/markov2/perl5-MIME-Types/commit/672b334ac4646299838ace76b55ff92bba9abc31#diff-442cedad0e9ca6647deafd750c61f1c412ac5b3776e66075791b331f0d4ad00dR2017

markov2 commented 2 years ago

For inexplicable reason, the generated output did not meet with my expectation. I made a new release (2.22) which also has checks built-in that "video/x-webm" is produced (webm and webp are still not officially registered at IANA)

Rikkuru commented 2 years ago

Thanks 🙏