Skip to content

Commit 67ddfef

Browse files
committed
keep invidious instances list in the same order
as suggested by @TobiGr
1 parent 53d3f79 commit 67ddfef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +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":
187+
case "DEV.INVIDIO.US":
188+
case "WWW.INVIDIO.US":
189+
case "REDIRECT.INVIDIOUS.IO":
189190
case "INVIDIOUS.SNOPYTA.ORG":
190191
case "YEWTU.BE":
191192
case "TUBE.CONNECT.CAFE":
@@ -200,8 +201,7 @@ public String getId(String urlString) throws ParsingException, IllegalArgumentEx
200201
case "INVIDIOUS.048596.XYZ":
201202
case "INVIDIOUS.ZEE.LI":
202203
case "VID.PUFFYAN.US":
203-
case "YTPRIVATE.COM":
204-
case "REDIRECT.INVIDIOUS.IO": { // code-block for hooktube.com and Invidious instances
204+
case "YTPRIVATE.COM": { // code-block for hooktube.com and Invidious instances
205205
if (path.equals("watch")) {
206206
String viewQueryValue = Utils.getQueryValue(url, "v");
207207
if (viewQueryValue != null) {

0 commit comments

Comments
 (0)