keep invidious instances list in the same order

as suggested by @TobiGr
This commit is contained in:
bopol 2021-01-22 20:58:14 +01:00
parent 53d3f7989b
commit 67ddfefdc6

View File

@ -183,9 +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 "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":
@ -200,8 +201,7 @@ public class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
case "INVIDIOUS.048596.XYZ": case "INVIDIOUS.048596.XYZ":
case "INVIDIOUS.ZEE.LI": case "INVIDIOUS.ZEE.LI":
case "VID.PUFFYAN.US": case "VID.PUFFYAN.US":
case "YTPRIVATE.COM": case "YTPRIVATE.COM": { // code-block for hooktube.com and Invidious instances
case "REDIRECT.INVIDIOUS.IO": { // 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) {