Skip to content

Commit 9701c7d

Browse files
committed
invidious shortened links
1 parent e8e535b commit 9701c7d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,12 @@ public String getId(String urlString) throws ParsingException, IllegalArgumentEx
190190
return assertIsID(id);
191191
}
192192

193-
break;
193+
String viewQueryValue = Utils.getQueryValue(url, "v");
194+
if (viewQueryValue != null) {
195+
return assertIsID(viewQueryValue);
196+
}
197+
198+
return assertIsID(path);
194199
}
195200
}
196201

0 commit comments

Comments
 (0)