mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-28 18:29:03 +01:00
qwq
This commit is contained in:
parent
3f192a16fb
commit
016b89830b
1 changed files with 2 additions and 5 deletions
|
@ -62,10 +62,7 @@ async function video(v) {
|
||||||
|
|
||||||
let nightlyRes;
|
let nightlyRes;
|
||||||
|
|
||||||
const video = await fetch(`${config.tubeApi}video?v=${v}`)
|
|
||||||
.then((res) => res.text())
|
|
||||||
.then((xml) => JSON.parse(toJson(xml)));
|
|
||||||
|
|
||||||
var inv_comments = await fetch(`${config.invapi}/comments/${v}`).then(
|
var inv_comments = await fetch(`${config.invapi}/comments/${v}`).then(
|
||||||
(res) => res.text()
|
(res) => res.text()
|
||||||
);
|
);
|
||||||
|
@ -96,7 +93,7 @@ async function video(v) {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
json: data.video.Player,
|
json: data.video.Player,
|
||||||
video,
|
video: await fetch(`${config.tubeApi}video?v=${v}`).then((res) => res.text()) .then((xml) => JSON.parse(toJson(xml))),
|
||||||
vid,
|
vid,
|
||||||
comments,
|
comments,
|
||||||
engagement: data.engagement,
|
engagement: data.engagement,
|
||||||
|
|
Loading…
Reference in a new issue