mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
api/schema: don't decode the url
this is from the dinosaur era of cobalt and hasn't been used since we moved to POST requests
This commit is contained in:
parent
1fe419784d
commit
329b068038
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import { verifyLanguageCode } from "../misc/utils.js";
|
||||||
export const apiSchema = z.object({
|
export const apiSchema = z.object({
|
||||||
url: z.string()
|
url: z.string()
|
||||||
.min(1)
|
.min(1)
|
||||||
.transform((url) => normalizeURL(decodeURIComponent(url))),
|
.transform(url => normalizeURL(url)),
|
||||||
|
|
||||||
audioBitrate: z.enum(
|
audioBitrate: z.enum(
|
||||||
["320", "256", "128", "96", "64", "8"]
|
["320", "256", "128", "96", "64", "8"]
|
||||||
|
|
Loading…
Reference in a new issue