This commit is contained in:
Ashley 2023-11-12 14:34:48 +00:00
parent 5a731b383e
commit fd9c40362e

View file

@ -79,10 +79,10 @@ class PokeTubeCore {
try { try {
const [invComments, videoInfo, videoData] = await Promise.all([ const [invComments, videoInfo, videoData] = await Promise.all([
fetch(`${this.config.invapi}/comments/${v}?hl=${contentlang}&region=${contentregion}`).then((res) => res.text()), fetch(`${this.config.invapi}/comments/${v}?hl=${contentlang}&region=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()),
fetch(`${this.config.invapi}/videos/${v}?hl=${contentlang}&region=${contentregion}`).then((res) => res.text()), fetch(`${this.config.invapi}/videos/${v}?hl=${contentlang}&region=${contentregion}&h=${btoa(Date.now())}`).then((res) => res.text()),
curly curly
.get(`${this.config.tubeApi}video?v=${v}`, { .get(`${this.config.tubeApi}video?v=${v}&h=${btoa(Date.now())}`, {
httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`), httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`),
}) })
.then((res) => { .then((res) => {