mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 02:53:09 +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 {
|
try {
|
||||||
URI uri = new URI(videoUrl);
|
URI uri = new URI(videoUrl);
|
||||||
if(uri.getHost().contains("youtube")) {
|
if(uri.getHost().contains("youtube")) {
|
||||||
String query = uri.getQuery();
|
String fragment = uri.getFragment();
|
||||||
String queryElements[] = query.split("&");
|
fragment = fragment.replace("/watch?", "");
|
||||||
|
String queryElements[] = fragment.split("&");
|
||||||
Map<String, String> queryArguments = new HashMap<>();
|
Map<String, String> queryArguments = new HashMap<>();
|
||||||
for (String e : queryElements) {
|
for (String e : queryElements) {
|
||||||
String[] s = e.split("=");
|
String[] s = e.split("=");
|
||||||
|
Loading…
Reference in New Issue
Block a user