From b4a17bd25a28a12e438434462aaa58c48655881f Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 21 Jan 2023 18:03:01 +0000 Subject: [PATCH] whoa cool stuff --- src/libpoketube/libpoketube-video.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/src/libpoketube/libpoketube-video.js b/src/libpoketube/libpoketube-video.js index d34272d2..128637cf 100644 --- a/src/libpoketube/libpoketube-video.js +++ b/src/libpoketube/libpoketube-video.js @@ -35,18 +35,7 @@ const { module.exports = async function (video_id) { var url; - - // bad proxys - the proxys that dont work - var badurls = [ - "invidious.tiekoetter.com", - "yewtu.be", - "invidious.slipfox.xyz", - "vid.priv.au", - ]; - - // good proxys - proxys that DO work alot good - var goodurls = ["invidious.sethforprivacy.com", "invidious.weblibre.org"]; - + function toObject(arr) { var rv = {}; for (var i = 0; i < arr.length; ++i) @@ -76,11 +65,9 @@ module.exports = async function (video_id) { .replace("invidious.tiekoetter.com", "invidious.weblibre.org") .replace("yewtu.be", "invidious.sethforprivacy.com") .replace("invidious.slipfox.xyz", "invidious.weblibre.org") - .replace("vid.priv.au", "invidious.weblibre.org") - .replace("invidious.snopyta.org", "invidious.weblibre.org"); + .replace("vid.priv.au", "inv.vern.cc") + .replace("invidious.snopyta.org", "invidious.sethforprivacy.com"); } - if (stringed[1].uri == "https://inv.vern.cc") url = "https://invidious.weblibre.org"; - return url; };