mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 21:57:49 +01:00
add lighttube proxy support :3
This commit is contained in:
parent
5dd815c08c
commit
f3000bf3f3
1 changed files with 14 additions and 3 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue