fix proxys :3

This commit is contained in:
Ashley 2023-09-14 15:53:17 +00:00
parent 1b4c6cf056
commit 8f3b1d4c29

View file

@ -45,26 +45,18 @@ function toObject(arr) {
// Gets Invidious instances // Gets Invidious instances
const invInstanceList = [ const invInstanceList = [
{ uri: "https://invidious.projectsegfau.lt" }, "https://inv.zzls.xyz",
{ uri: "https://iv.ggtyler.dev" }, "https://iv.datura.network",
{ uri: "https://invidious.protokolla.fi" }, "https://vid.theedgeofrage.com"
{ uri: "https://inv.zzls.xyz" },
{ uri: "https://invidious.fdn.fr" },
{ uri: "https://anontube.lvkaszus.pl" },
{ uri: "https://iv.datura.network" },
{ uri: "https://yt.drgnz.club" },
{ uri: "https://invidious.private.coffee" },
{ uri: "https://inv.tux.pizza" },
{ uri: "https://invidious.lunar.icu" },
{ uri: "https://yt.artemislena.eu" },
]; ];
// Gets a random instance from the list // Gets a random instance from the list
const instance = invInstanceList[Math.floor(Math.random() * invInstanceList.length)]; const instance =
invInstanceList[Math.floor(Math.random() * invInstanceList.length)];
let url; let url;
if (instance.uri.startsWith("https://")) { if (instance.startsWith("https://")) {
url = instance.uri; url = instance;
} else { } else {
url = "https://tube.kuylar.dev"; url = "https://tube.kuylar.dev";
} }