From c3b63eb5a2473f57d5d17c9f79b96725848899ca Mon Sep 17 00:00:00 2001 From: localhost Date: Wed, 1 Oct 2025 21:30:32 +0200 Subject: [PATCH] whoops, const is still there --- index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index f4b699e..6b72dcc 100644 --- a/index.ts +++ b/index.ts @@ -189,8 +189,8 @@ app.ws('/download/:id', async (ws, req) => { return ws.close() } - const audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mime_type!); - const videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mime_type!); + audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mime_type!); + videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mime_type!); await Promise.all([ downloadStream(videoStreamUrl, selectedFormats.videoFormat, videoOutputStream.stream, ws, 'video'), @@ -219,8 +219,8 @@ app.ws('/download/:id', async (ws, req) => { return ws.close() } - const audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mimeType!); - const videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mimeType!); + audioOutputStream = createOutputStream(req.params.id, selectedFormats.audioFormat.mimeType!); + videoOutputStream = createOutputStream(req.params.id, selectedFormats.videoFormat.mimeType!); await Promise.all([ videoStream.pipeTo(createStreamSink(selectedFormats.videoFormat, videoOutputStream.stream, ws, 'video')),