From dd1e9cdbbc65b9d43169c7d6612fb1545f52b9f6 Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 11 Jan 2023 19:06:10 +0000 Subject: [PATCH] wow cool stuff --- src/libpoketube/libpoketube-video.js | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/libpoketube/libpoketube-video.js b/src/libpoketube/libpoketube-video.js index a6c511ae..d34272d2 100644 --- a/src/libpoketube/libpoketube-video.js +++ b/src/libpoketube/libpoketube-video.js @@ -70,24 +70,17 @@ module.exports = async function (video_id) { const stringed = toObject(instance); if (stringed[1].type != "https") { - url = "https://vid.puffyan.us"; + url = "https://invidious.weblibre.org"; } else { url = stringed[1].uri .replace("invidious.tiekoetter.com", "invidious.weblibre.org") - .replace( - "yewtu.be", - "invidious.sethforprivacy.com", - "invidious.slipfox.xyz", - "invidious.weblibre.org", - "vid.priv.au", - "invidious.weblibre.org", - "invidious.snopyta.org", - "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"); } - if (stringed[1].uri == "https://inv.vern.cc") url = "https://vid.puffyan.us"; + if (stringed[1].uri == "https://inv.vern.cc") url = "https://invidious.weblibre.org"; return url; };