From 6d928df957fd879d7f9fc351789e5520e18bde70 Mon Sep 17 00:00:00 2001 From: sky Date: Tue, 12 Aug 2025 15:49:56 -0400 Subject: [PATCH] retard --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f0dd46e..bf721c5 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ Bun.serve({ if(req.headers.get("X-Authentication") == process.env.PRIVATE_KEY) { let path = "tmp/" + Bun.randomUUIDv7(); let data = await req.json(); - await `yt-dlp '${data.url}' -q -o "${path}.mp4"` + await $`yt-dlp '${data.url}' -q -o "${path}.mp4"` await $`ffmpeg -i ${path}.mp4 -map_metadata -1 -map 0 -map -0:v -b:a 64k ${path}.ogg` await (Bun.file(path + ".mp4")).delete(); let response = new Response(await Bun.file(path + ".ogg").bytes(), { @@ -27,4 +27,4 @@ Bun.serve({ } }); -console.log("http://localhost:6001") \ No newline at end of file +console.log("http://localhost:6001")