mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 09:18:13 +01:00
use invidious comments
This commit is contained in:
parent
928a686cf5
commit
743229525a
1 changed files with 3 additions and 2 deletions
|
@ -84,7 +84,8 @@ class InnerTubePokeVidious {
|
||||||
let desc = "";
|
let desc = "";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const [videoInfo, videoData] = await Promise.all([
|
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}/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
|
curly
|
||||||
.get(`${this.config.tubeApi}video?v=${v}`, {
|
.get(`${this.config.tubeApi}video?v=${v}`, {
|
||||||
|
@ -98,7 +99,7 @@ class InnerTubePokeVidious {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
const comments = await yt.getComments(v);
|
const comments = await this.getJson(invComments);
|
||||||
|
|
||||||
const vid = await this.getJson(videoInfo);
|
const vid = await this.getJson(videoInfo);
|
||||||
const { json, video } = videoData;
|
const { json, video } = videoData;
|
||||||
|
|
Loading…
Reference in a new issue