pinning player_id

This commit is contained in:
localhost 2025-09-24 19:44:14 +02:00
parent 4c3d3de8ba
commit 31ebfaaa3a
1 changed files with 6 additions and 2 deletions

View File

@ -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, {