You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of projects that use Lofty are scanning directories and filtering files based on a set of extensions. What typically ends up happening is only a few popular extensions (mp3, flac, wav) will make it in the list, and not all of the formats that Lofty supports. Not to mention it's just a bunch of duplicated work.
FileType::from_ext has a pretty good list of extensions:
Summary
A lot of projects that use Lofty are scanning directories and filtering files based on a set of extensions. What typically ends up happening is only a few popular extensions (mp3, flac, wav) will make it in the list, and not all of the formats that Lofty supports. Not to mention it's just a bunch of duplicated work.
FileType::from_ext
has a pretty good list of extensions:lofty-rs/lofty/src/file/file_type.rs
Lines 130 to 145 in aa1ec31
It too isn't perfect, of course. But if projects start using a list of extensions we provide, then they get any improvements to it for free.
API design
The text was updated successfully, but these errors were encountered: