From 329b068038513ddc3b7c0a8d0f25cfe3e170680e Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 30 Aug 2024 14:09:18 +0600 Subject: [PATCH] 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 --- api/src/processing/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/processing/schema.js b/api/src/processing/schema.js index 9ff6e36b..c7ae1c6e 100644 --- a/api/src/processing/schema.js +++ b/api/src/processing/schema.js @@ -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"]