We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96709d2 commit ab4d626Copy full SHA for ab4d626
1 file changed
app/src/main/java/org/schabi/newpipe/youtube/YoutubeExtractor.java
@@ -98,8 +98,9 @@ public String getVideoId(String videoUrl) {
98
try {
99
URI uri = new URI(videoUrl);
100
if(uri.getHost().contains("youtube")) {
101
- String query = uri.getQuery();
102
- String queryElements[] = query.split("&");
+ String fragment = uri.getFragment();
+ fragment = fragment.replace("/watch?", "");
103
+ String queryElements[] = fragment.split("&");
104
Map<String, String> queryArguments = new HashMap<>();
105
for (String e : queryElements) {
106
String[] s = e.split("=");
0 commit comments