Skip to content

Commit bfa6b4d

Browse files
authored
Merge pull request #182 from 2secslater/patch-1
Add Invidious instances
2 parents ec3554a + d0f1c31 commit bfa6b4d

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static boolean isHooktubeURL(URL url) {
4848

4949
public static boolean isInvidioURL(URL url) {
5050
String host = url.getHost();
51-
return host.equalsIgnoreCase("invidio.us") || host.equalsIgnoreCase("www.invidio.us");
51+
return host.equalsIgnoreCase("invidio.us") || host.equalsIgnoreCase("dev.invidio.us") || host.equalsIgnoreCase("www.invidio.us") || host.equalsIgnoreCase("invidious.snopyta.org") || host.equalsIgnoreCase("de.invidious.snopyta.org") || host.equalsIgnoreCase("fi.invidious.snopyta.org") || host.equalsIgnoreCase("vid.wxzm.sx") || host.equalsIgnoreCase("invidious.kabi.tk") || host.equalsIgnoreCase("invidiou.sh") || host.equalsIgnoreCase("www.invidiou.sh") || host.equalsIgnoreCase("no.invidiou.sh") || host.equalsIgnoreCase("invidious.enkirton.net") || host.equalsIgnoreCase("tube.poal.co") || host.equalsIgnoreCase("invidious.13ad.de") || host.equalsIgnoreCase("yt.elukerio.org");
5252
}
5353

5454
public static long parseDurationString(String input)

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

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,20 @@ public String getId(String urlString) throws ParsingException, IllegalArgumentEx
163163
}
164164

165165
case "WWW.INVIDIO.US":
166-
case "INVIDIO.US": { // code-block for hooktube.com and invidio.us
166+
case "DEV.INVIDIO.US":
167+
case "INVIDIO.US":
168+
case "INVIDIOUS.SNOPYTA.ORG":
169+
case "DE.INVIDIOUS.SNOPYTA.ORG":
170+
case "FI.INVIDIOUS.SNOPYTA.ORG":
171+
case "VID.WXZM.SX":
172+
case "INVIDIOUS.KABI.TK":
173+
case "INVIDIOU.SH":
174+
case "WWW.INVIDIOU.SH":
175+
case "NO.INVIDIOU.SH":
176+
case "INVIDIOUS.ENKIRTON.NET":
177+
case "TUBE.POAL.CO":
178+
case "INVIDIOUS.13AD.DE":
179+
case "YT.ELUKERIO.ORG": { // code-block for hooktube.com and Invidious instances
167180
if (path.equals("watch")) {
168181
String viewQueryValue = Utils.getQueryValue(url, "v");
169182
if (viewQueryValue != null) {

0 commit comments

Comments
 (0)