api/schema: add 8bkps audio bitrate option

This commit is contained in:
wukko 2024-08-22 20:06:54 +06:00
parent 49184a235d
commit 42ff874c95
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ export const apiSchema = z.object({
.transform((url) => normalizeURL(decodeURIComponent(url))), .transform((url) => normalizeURL(decodeURIComponent(url))),
audioBitrate: z.enum( audioBitrate: z.enum(
["320", "256", "128", "96", "64"] ["320", "256", "128", "96", "64", "8"]
).default("256"), ).default("256"),
audioFormat: z.enum( audioFormat: z.enum(

View file

@ -2,7 +2,7 @@ import languages from '$i18n/languages.json';
import type { RecursivePartial } from './generic'; import type { RecursivePartial } from './generic';
export const themeOptions = ["auto", "light", "dark"] as const; 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 audioFormatOptions = ["best", "mp3", "ogg", "wav", "opus"] as const;
export const downloadModeOptions = ["auto", "audio", "mute"] as const; export const downloadModeOptions = ["auto", "audio", "mute"] as const;
export const filenameStyleOptions = ["classic", "basic", "pretty", "nerdy"] as const; export const filenameStyleOptions = ["classic", "basic", "pretty", "nerdy"] as const;