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