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
1 changed files with 3 additions and 2 deletions

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