1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 22:14:38 -05:00

use invapi instead

This commit is contained in:
Ashley //// 2024-03-09 17:00:29 +00:00
parent 3dcc088c29
commit 2515913716

View file

@ -83,7 +83,7 @@ class InnerTubePokeVidious {
try {
const [invComments, videoInfo, videoData] = await Promise.all([
fetch(`${this.config.invapi}/comments/${v}?hl=${contentlang}&region=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()),
fetch(`${this.config.invapi_alt}/videos/${v}?hl=${contentlang}&region=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()),
fetch(`${this.config.invapi}/videos/${v}?hl=${contentlang}&region=${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}&region=${contentregion}`
`${this.config.invapi}/channels/${vid.authorId}?hl=${contentlang}&region=${contentregion}`
);
const p = this.getJson(await channel_uploads.text());