From fa33ae3f5b280e02a368379091e1592c95b12e6d Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 25 Feb 2023 19:39:16 +0000 Subject: [PATCH] add more urls :3 --- src/libpoketube/libpoketube-core.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 82e342c3..051d48ff 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -87,7 +87,9 @@ async function video(v) { const urls = [ "invidious.sethforprivacy.com", "invidious.weblibre.org", - "inv.vern.cc" + "inv.vern.cc", + "invidious.privacydev.net", + "inv.zzls.xyz" ]; let vid; @@ -96,7 +98,7 @@ for (const url of urls) { const videoInfo = await fetch(`https://${url}/api/v1/videos/${v}`).then(res => res.text()); vid = await getJson(videoInfo); - if (vid.descriptionHtml !== "

") { + if (vid?.descriptionHtml !== "

") { break; } }