mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-29 11:06:10 +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
|
@ -6,7 +6,7 @@ import { verifyLanguageCode } from "../misc/utils.js";
|
|||
export const apiSchema = z.object({
|
||||
url: z.string()
|
||||
.min(1)
|
||||
.transform((url) => normalizeURL(decodeURIComponent(url))),
|
||||
.transform(url => normalizeURL(url)),
|
||||
|
||||
audioBitrate: z.enum(
|
||||
["320", "256", "128", "96", "64", "8"]
|
||||
|
|
Loading…
Reference in a new issue