mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 04:22:30 +01:00
fixed opening videos via firefox/fenec
This commit is contained in:
parent
96709d22e9
commit
ab4d626ea9
@ -98,8 +98,9 @@ public class YoutubeExtractor implements Extractor {
|
||||
try {
|
||||
URI uri = new URI(videoUrl);
|
||||
if(uri.getHost().contains("youtube")) {
|
||||
String query = uri.getQuery();
|
||||
String queryElements[] = query.split("&");
|
||||
String fragment = uri.getFragment();
|
||||
fragment = fragment.replace("/watch?", "");
|
||||
String queryElements[] = fragment.split("&");
|
||||
Map<String, String> queryArguments = new HashMap<>();
|
||||
for (String e : queryElements) {
|
||||
String[] s = e.split("=");
|
||||
|
Loading…
Reference in New Issue
Block a user