From 25159137167eab803c72ca458cfa7cabfdd25b35 Mon Sep 17 00:00:00 2001 From: Ashley //// Date: Sat, 9 Mar 2024 17:00:29 +0000 Subject: [PATCH] use invapi instead --- src/libpoketube/libpoketube-core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 88cc808d..e0c73630 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -83,7 +83,7 @@ class InnerTubePokeVidious { try { const [invComments, videoInfo, videoData] = await Promise.all([ fetch(`${this.config.invapi}/comments/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()), - fetch(`${this.config.invapi_alt}/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()), + fetch(`${this.config.invapi}/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()), curly .get(`${this.config.tubeApi}video?v=${v}`, { httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`), @@ -100,7 +100,7 @@ class InnerTubePokeVidious { const { json, video } = videoData; const channel_uploads = await fetch( - `${this.config.invapi_alt}/channels/${vid.authorId}?hl=${contentlang}®ion=${contentregion}` + `${this.config.invapi}/channels/${vid.authorId}?hl=${contentlang}®ion=${contentregion}` ); const p = this.getJson(await channel_uploads.text());