From 016b89830b43fb53e06f01e7500ac85729aad9b2 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 7 Nov 2022 20:59:05 +0100 Subject: [PATCH] qwq --- src/libpoketube/libpoketube-core.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 06a2d103..4a1a6eb0 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -62,10 +62,7 @@ async function video(v) { 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( (res) => res.text() ); @@ -96,7 +93,7 @@ async function video(v) { return { json: data.video.Player, - video, + video: await fetch(`${config.tubeApi}video?v=${v}`).then((res) => res.text()) .then((xml) => JSON.parse(toJson(xml))), vid, comments, engagement: data.engagement,