Merge pull request #522 from B0pol/invidious_instances

update invidious instances list
This commit is contained in:
Tobias Groza 2021-01-22 21:04:10 +01:00 committed by GitHub
commit 69f155d292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

@ -111,7 +111,7 @@ public class YoutubeParsingHelper {
return host.equalsIgnoreCase("invidio.us") return host.equalsIgnoreCase("invidio.us")
|| host.equalsIgnoreCase("dev.invidio.us") || host.equalsIgnoreCase("dev.invidio.us")
|| host.equalsIgnoreCase("www.invidio.us") || host.equalsIgnoreCase("www.invidio.us")
|| host.equalsIgnoreCase("vid.encryptionin.space") || host.equalsIgnoreCase("redirect.invidious.io")
|| host.equalsIgnoreCase("invidious.snopyta.org") || host.equalsIgnoreCase("invidious.snopyta.org")
|| host.equalsIgnoreCase("yewtu.be") || host.equalsIgnoreCase("yewtu.be")
|| host.equalsIgnoreCase("tube.connect.cafe") || host.equalsIgnoreCase("tube.connect.cafe")
@ -122,7 +122,11 @@ public class YoutubeParsingHelper {
|| host.equalsIgnoreCase("invidious.xyz") || host.equalsIgnoreCase("invidious.xyz")
|| host.equalsIgnoreCase("vid.mint.lgbt") || host.equalsIgnoreCase("vid.mint.lgbt")
|| host.equalsIgnoreCase("invidiou.site") || host.equalsIgnoreCase("invidiou.site")
|| host.equalsIgnoreCase("invidious.fdn.fr"); || host.equalsIgnoreCase("invidious.fdn.fr")
|| host.equalsIgnoreCase("invidious.048596.xyz")
|| host.equalsIgnoreCase("invidious.zee.li")
|| host.equalsIgnoreCase("vid.puffyan.us")
|| host.equalsIgnoreCase("ytprivate.com");
} }
/** /**

View File

@ -183,10 +183,10 @@ public class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
// there is no break-statement here on purpose so the next code-block gets also run for hooktube // there is no break-statement here on purpose so the next code-block gets also run for hooktube
} }
case "WWW.INVIDIO.US":
case "DEV.INVIDIO.US":
case "INVIDIO.US": case "INVIDIO.US":
case "VID.ENCRYPTIONIN.SPACE": case "DEV.INVIDIO.US":
case "WWW.INVIDIO.US":
case "REDIRECT.INVIDIOUS.IO":
case "INVIDIOUS.SNOPYTA.ORG": case "INVIDIOUS.SNOPYTA.ORG":
case "YEWTU.BE": case "YEWTU.BE":
case "TUBE.CONNECT.CAFE": case "TUBE.CONNECT.CAFE":
@ -197,7 +197,11 @@ public class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
case "INVIDIOUS.XYZ": case "INVIDIOUS.XYZ":
case "VID.MINT.LGBT": case "VID.MINT.LGBT":
case "INVIDIOU.SITE": case "INVIDIOU.SITE":
case "INVIDIOUS.FDN.FR": { // code-block for hooktube.com and Invidious instances case "INVIDIOUS.FDN.FR":
case "INVIDIOUS.048596.XYZ":
case "INVIDIOUS.ZEE.LI":
case "VID.PUFFYAN.US":
case "YTPRIVATE.COM": { // code-block for hooktube.com and Invidious instances
if (path.equals("watch")) { if (path.equals("watch")) {
String viewQueryValue = Utils.getQueryValue(url, "v"); String viewQueryValue = Utils.getQueryValue(url, "v");
if (viewQueryValue != null) { if (viewQueryValue != null) {