This commit is contained in:
Ashley //// 2024-02-04 12:21:47 +00:00
parent 0ed1164dea
commit 6eda94dc36

View file

@ -80,7 +80,7 @@ class PokeTubeCore {
try {
const [invComments, videoInfo, videoData] = await Promise.all([
fetch(`${this.config.invapi_alt}/comments/${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()),
fetch(`${this.config.invapi_alt}/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}`),
@ -97,7 +97,7 @@ class PokeTubeCore {
const { json, video } = videoData;
const channel_uploads = await fetch(
`${this.config.invapi}/channels/${vid.authorId}?hl=${contentlang}&region=${contentregion}`
`${this.config.invapi_alt}/channels/${vid.authorId}?hl=${contentlang}&region=${contentregion}`
);
const p = this.getJson(await channel_uploads.text());