mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 08:17:25 +01:00
add more urls :3
This commit is contained in:
parent
1879f210b8
commit
fa33ae3f5b
1 changed files with 4 additions and 2 deletions
|
@ -87,7 +87,9 @@ async function video(v) {
|
||||||
const urls = [
|
const urls = [
|
||||||
"invidious.sethforprivacy.com",
|
"invidious.sethforprivacy.com",
|
||||||
"invidious.weblibre.org",
|
"invidious.weblibre.org",
|
||||||
"inv.vern.cc"
|
"inv.vern.cc",
|
||||||
|
"invidious.privacydev.net",
|
||||||
|
"inv.zzls.xyz"
|
||||||
];
|
];
|
||||||
|
|
||||||
let vid;
|
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());
|
const videoInfo = await fetch(`https://${url}/api/v1/videos/${v}`).then(res => res.text());
|
||||||
vid = await getJson(videoInfo);
|
vid = await getJson(videoInfo);
|
||||||
|
|
||||||
if (vid.descriptionHtml !== "<p></p>") {
|
if (vid?.descriptionHtml !== "<p></p>") {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue