From 42ff874c959b0d13b1e81871c53f31e263c68e76 Mon Sep 17 00:00:00 2001 From: wukko Date: Thu, 22 Aug 2024 20:06:54 +0600 Subject: [PATCH] api/schema: add 8bkps audio bitrate option --- api/src/processing/schema.js | 2 +- web/src/lib/types/settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/processing/schema.js b/api/src/processing/schema.js index ed234e16..51915b18 100644 --- a/api/src/processing/schema.js +++ b/api/src/processing/schema.js @@ -9,7 +9,7 @@ export const apiSchema = z.object({ .transform((url) => normalizeURL(decodeURIComponent(url))), audioBitrate: z.enum( - ["320", "256", "128", "96", "64"] + ["320", "256", "128", "96", "64", "8"] ).default("256"), audioFormat: z.enum( diff --git a/web/src/lib/types/settings.ts b/web/src/lib/types/settings.ts index d52f3d77..4e8d0fb8 100644 --- a/web/src/lib/types/settings.ts +++ b/web/src/lib/types/settings.ts @@ -2,7 +2,7 @@ import languages from '$i18n/languages.json'; import type { RecursivePartial } from './generic'; export const themeOptions = ["auto", "light", "dark"] as const; -export const audioBitrateOptions = ["320", "256", "128", "96", "64"] as const; +export const audioBitrateOptions = ["320", "256", "128", "96", "64", "8"] as const; export const audioFormatOptions = ["best", "mp3", "ogg", "wav", "opus"] as const; export const downloadModeOptions = ["auto", "audio", "mute"] as const; export const filenameStyleOptions = ["classic", "basic", "pretty", "nerdy"] as const;