From 81dd09dbdfba5b9068b9a1406fafc38fc93035f2 Mon Sep 17 00:00:00 2001 From: localhost Date: Thu, 20 Nov 2025 23:15:28 +0100 Subject: [PATCH] fix error codes --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 5fe2799..037abae 100644 --- a/index.ts +++ b/index.ts @@ -133,7 +133,7 @@ app.ws('/download/:id', async (ws, req) => { } if (info.playabilityStatus?.status !== 'OK') { - ws.send(`This video is not available for download (${info.playability_status?.status} ${info.playability_status?.reason}).`); + ws.send(`This video is not available for download (${info.playabilityStatus?.status} ${info.playabilityStatus?.reason}).`); return ws.close() } else if (info.videoDetails.isLiveContent) { ws.send('This video is live, and cannot be downloaded.');