additional detection with mime-types for module files #344
Loading…
Reference in New Issue
No description provided.
Delete Branch "puniko/FoundKey:improve/mime-types-detect-for-tracked-music"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Additionally uses mime-types to detect modules. as npm's file-type doesn't know a lot of module types, this only seems to work with .xm, .it and .s3m files.
this should make detection a bit more reliable for those files from remote misskey-based instances
@ -131,3 +131,3 @@
const isModule = (file: foundkey.entities.DriveFile): boolean => {
return FILE_EXT_TRACKER_MODULES.some((ext) => {
return FILE_TYPE_TRACKER_MODULES.some((type) => {
I think you should use
includes
in this case.