add lighttube proxy support :3

This commit is contained in:
Ashley 2023-05-08 15:51:23 +00:00
parent 5dd815c08c
commit f3000bf3f3

View file

@ -53,7 +53,7 @@ module.exports = async function (video_id) {
let url; let url;
if (instance[1].type != "https") { if (instance[1].type != "https") {
url = "https://y.com.sb"; url = "https://tube.kuylar.dev";
} else { } else {
//replaces bad proxys (e.g the proxys that do not support media proxys, or the proxys that are down ) //replaces bad proxys (e.g the proxys that do not support media proxys, or the proxys that are down )
url = instance[1].uri url = instance[1].uri
@ -65,12 +65,23 @@ module.exports = async function (video_id) {
.replace("yt.funami.tech", "y.com.sb") .replace("yt.funami.tech", "y.com.sb")
.replace("invidious.lidarshield.cloud", "inv.odyssey346.dev") .replace("invidious.lidarshield.cloud", "inv.odyssey346.dev")
.replace("vid.priv.au", "inv.vern.cc") .replace("vid.priv.au", "inv.vern.cc")
.replace("invidious.privacydev.net", "inv.vern.cc") .replace("invidious.privacydev.net", "tube.kuylar.dev")
.replace("watch.thekitty.zone", "y.com.sb") .replace("watch.thekitty.zone", "y.com.sb")
.replace("invidious.snopyta.org", "inv.odyssey346.dev") .replace("invidious.snopyta.org", "inv.odyssey346.dev")
.replace("invidious.weblibre.org", "y.com.sb") .replace("invidious.weblibre.org", "y.com.sb")
.replace("invidious.sethforprivacy.com", "y.com.sb") .replace("invidious.sethforprivacy.com", "y.com.sb")
} }
return url; if(url == "https://tube.kuylar.dev") {
var isInvidiousURL = false
} else {
isInvidiousURL = true;
}
const videoProxyObject = {
isInvidiousURL,
url
}
return videoProxyObject;
}; };