[chore] update dependencies (#681)

* update dependencies

* Fix ytjs 15
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2025-07-18 20:20:05 -04:00
1 parent 64cad65e1a
commit 84304cd26e
5 files changed
+76 -86

No files matched your search

+2 -1
View File
@@ -221,6 +221,7 @@ export class YoutubeJs {
YoutubeJs.innerTube = await Innertube.create({
fetch: YoutubeJs.fetch,
cache: new UniversalCache(true),
// TODO:P0 with ytjs 15, poTokens should be regenerated per video
po_token: YoutubeJs.poToken,
visitor_data: YoutubeJs.visitorData,
});
@@ -283,7 +284,7 @@ export class YoutubeJs {
static async getVideoInfo(videoId: string) {
await YoutubeJs.initInnertube();
const info = await YoutubeJs.innerTube.getBasicInfo(videoId, 'TV');
const info = await YoutubeJs.innerTube.getBasicInfo(videoId, { client: 'TV' });
// We can't generate a proper dash from live videos.
// By returning null, we're telling Playlet to fetch video info itself.