no longer supported

This commit is contained in:
localhost 2025-11-10 21:27:26 +01:00
parent aaa9676fbb
commit a6f51e37fb
1 changed files with 1 additions and 2 deletions

View File

@ -123,8 +123,7 @@ export async function createSabrStream(
innertube: Innertube; innertube: Innertube;
streamResults: StreamResults; streamResults: StreamResults;
}> { }> {
const json = await Bun.file('config.json').json() const innertube = await Innertube.create({ cache: new UniversalCache(true) });
const innertube = await Innertube.create({ cache: new UniversalCache(true), player_id: json.player_id });
const webPoTokenResult = await generateWebPoToken(innertube.session.context.client.visitorData || ''); const webPoTokenResult = await generateWebPoToken(innertube.session.context.client.visitorData || '');
console.log(`debugging -> ${JSON.stringify(webPoTokenResult)}, ${videoId}`) console.log(`debugging -> ${JSON.stringify(webPoTokenResult)}, ${videoId}`)