From 98b2a5d4172acd8204a085c7aeab28436bdbfe91 Mon Sep 17 00:00:00 2001 From: localhost Date: Fri, 14 Mar 2025 23:38:36 +0100 Subject: [PATCH] if this works im going insane --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 833e736..b76acbf 100644 --- a/index.js +++ b/index.js @@ -122,7 +122,7 @@ app.get('/videos/:id', async (req, res) => { app.ws('/download/:id/:quality', async (ws, req) => { const yt = await Innertube.create(); - const info = await yt.getInfo(req.params.id, 'ANDROID'); + const info = await yt.getInfo(req.params.id, 'IOS'); if (info.playability_status.status !== 'OK') { ws.send(`This video is not available for download (${info.playability_status.status} ${info.playability_status.reason}).`); return ws.close()