feat(plugin): FixFileExtensions

This commit is contained in:
thororen1234 2024-10-27 02:07:41 -04:00
parent 2c773ec7d1
commit 0d4cfd5e3b
3 changed files with 67 additions and 20 deletions

View file

@ -31,6 +31,21 @@ export interface Dev {
badge?: boolean;
}
// No clue where to put these
const extensionMap = {
"ogg": [".ogv", ".oga", ".ogx", ".ogm", ".spx", ".opus"],
"jpg": [".jpg", ".jpeg", ".jfif", ".jpe", ".jif", ".jfi", ".pjpeg", ".pjp"],
"svg": [".svgz"],
"mp4": [".m4v", ".m4a", ".m4r", ".m4b", ".m4p"],
"mov": [".movie", ".qt"],
};
export const reverseExtensionMap = Object.entries(extensionMap).reduce((acc, [target, exts]) => {
exts.forEach(ext => acc[ext] = `.${target}`);
return acc;
}, {} as Record<string, string>);
/**
* If you made a plugin or substantial contribution, add yourself here.
* This object is used for the plugin author list, as well as to add a contributor badge to your profile.
@ -928,7 +943,7 @@ export const EquicordDevs = Object.freeze({
name: "Leko",
id: 108153734541942784n
},
SomeAspy: {
SomeAspy: {
name: "SomeAspy",
id: 516750892372852754n,
},