1
0
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:
Christian Schabesberger 2015-10-28 20:48:03 +01:00
parent 96709d22e9
commit ab4d626ea9

View File

@ -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("=");