From fd9c40362e86132f5a9ce98ee813c2d0d72825b9 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 12 Nov 2023 14:34:48 +0000 Subject: [PATCH] add h --- src/libpoketube/libpoketube-core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 45f9df12..caa64dfb 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -79,10 +79,10 @@ class PokeTubeCore { try { const [invComments, videoInfo, videoData] = await Promise.all([ - fetch(`${this.config.invapi}/comments/${v}?hl=${contentlang}®ion=${contentregion}`).then((res) => res.text()), - fetch(`${this.config.invapi}/videos/${v}?hl=${contentlang}®ion=${contentregion}`).then((res) => res.text()), + fetch(`${this.config.invapi}/comments/${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}`, { + .get(`${this.config.tubeApi}video?v=${v}&h=${btoa(Date.now())}`, { httpHeader: Object.entries(headers).map(([k, v]) => `${k}: ${v}`), }) .then((res) => {