From 31ebfaaa3a524539505c4f16798a4add30d33542 Mon Sep 17 00:00:00 2001 From: localhost Date: Wed, 24 Sep 2025 19:44:14 +0200 Subject: [PATCH] pinning player_id --- index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 96412f3..90b879c 100644 --- a/index.ts +++ b/index.ts @@ -108,7 +108,9 @@ app.get('/channel/:id', async (req, res) => { app.get('/videos/:id', async (req, res) => { try { const videos = []; - const yt = await Innertube.create(); + const yt = await Innertube.create({ + player_id: '0004de42' + }); const channel = await yt.getChannel(req.params.id); let json = await channel.getVideos(); @@ -132,7 +134,9 @@ app.get('/videos/:id', async (req, res) => { // @ts-ignore app.ws('/download/:id', async (ws, req) => { - const yt = await Innertube.create(); + const yt = await Innertube.create({ + player_id: '0004de42' + }); let quality = '480p' const info = await yt.getInfo(req.params.id, {