This commit is contained in:
JovannMC 2025-06-01 18:24:10 +03:00
commit 2af5651d19
No known key found for this signature in database
1 changed files with 4 additions and 8 deletions

View File

@ -31,23 +31,19 @@ export const categories: Categories = {
categories.audio.formats =
converters
.find((c) => c.name === "ffmpeg")
?.formatStrings((f) => f.toSupported)
.filter((f) => f !== "mp3") || [];
?.formatStrings((f) => f.toSupported) || [];
categories.video.formats =
converters
.find((c) => c.name === "vertd")
?.formatStrings((f) => f.toSupported)
.filter((f) => f !== "mp4") || [];
?.formatStrings((f) => f.toSupported) || [];
categories.image.formats =
converters
.find((c) => c.name === "libvips")
?.formatStrings((f) => f.toSupported)
.filter((f) => f !== ".webp" && f !== ".gif") || [];
?.formatStrings((f) => f.toSupported) || [];
categories.docs.formats =
converters
.find((c) => c.name === "pandoc")
?.formatStrings((f) => f.toSupported)
.filter((f) => f !== ".pdf") || [];
?.formatStrings((f) => f.toSupported) || [];
export const byNative = (format: string) => {
return (a: Converter, b: Converter) => {