Skip to content

Commit 69f155d

Browse files
authored
Merge pull request #522 from B0pol/invidious_instances
update invidious instances list
2 parents beb7050 + 67ddfef commit 69f155d

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeParsingHelper.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public static boolean isInvidioURL(final URL url) {
111111
return host.equalsIgnoreCase("invidio.us")
112112
|| host.equalsIgnoreCase("dev.invidio.us")
113113
|| host.equalsIgnoreCase("www.invidio.us")
114-
|| host.equalsIgnoreCase("vid.encryptionin.space")
114+
|| host.equalsIgnoreCase("redirect.invidious.io")
115115
|| host.equalsIgnoreCase("invidious.snopyta.org")
116116
|| host.equalsIgnoreCase("yewtu.be")
117117
|| host.equalsIgnoreCase("tube.connect.cafe")
@@ -122,7 +122,11 @@ public static boolean isInvidioURL(final URL url) {
122122
|| host.equalsIgnoreCase("invidious.xyz")
123123
|| host.equalsIgnoreCase("vid.mint.lgbt")
124124
|| host.equalsIgnoreCase("invidiou.site")
125-
|| host.equalsIgnoreCase("invidious.fdn.fr");
125+
|| host.equalsIgnoreCase("invidious.fdn.fr")
126+
|| host.equalsIgnoreCase("invidious.048596.xyz")
127+
|| host.equalsIgnoreCase("invidious.zee.li")
128+
|| host.equalsIgnoreCase("vid.puffyan.us")
129+
|| host.equalsIgnoreCase("ytprivate.com");
126130
}
127131

128132
/**

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/linkHandler/YoutubeStreamLinkHandlerFactory.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ public String getId(String urlString) throws ParsingException, IllegalArgumentEx
183183
// there is no break-statement here on purpose so the next code-block gets also run for hooktube
184184
}
185185

186-
case "WWW.INVIDIO.US":
187-
case "DEV.INVIDIO.US":
188186
case "INVIDIO.US":
189-
case "VID.ENCRYPTIONIN.SPACE":
187+
case "DEV.INVIDIO.US":
188+
case "WWW.INVIDIO.US":
189+
case "REDIRECT.INVIDIOUS.IO":
190190
case "INVIDIOUS.SNOPYTA.ORG":
191191
case "YEWTU.BE":
192192
case "TUBE.CONNECT.CAFE":
@@ -197,7 +197,11 @@ public String getId(String urlString) throws ParsingException, IllegalArgumentEx
197197
case "INVIDIOUS.XYZ":
198198
case "VID.MINT.LGBT":
199199
case "INVIDIOU.SITE":
200-
case "INVIDIOUS.FDN.FR": { // code-block for hooktube.com and Invidious instances
200+
case "INVIDIOUS.FDN.FR":
201+
case "INVIDIOUS.048596.XYZ":
202+
case "INVIDIOUS.ZEE.LI":
203+
case "VID.PUFFYAN.US":
204+
case "YTPRIVATE.COM": { // code-block for hooktube.com and Invidious instances
201205
if (path.equals("watch")) {
202206
String viewQueryValue = Utils.getQueryValue(url, "v");
203207
if (viewQueryValue != null) {

0 commit comments

Comments
 (0)