fix hashtag parsing
This commit is contained in:
parent
981cb333b5
commit
c4e16c7337
1 changed files with 5 additions and 1 deletions
|
@ -172,9 +172,13 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||||
// so we don't need to override it.
|
// so we don't need to override it.
|
||||||
final String link =
|
final String link =
|
||||||
Parser.compatParseMap(queryString).get("q");
|
Parser.compatParseMap(queryString).get("q");
|
||||||
|
|
||||||
|
// if link is null the a tag is a hashtag. They refer to the youtube search. We do not handle them.
|
||||||
|
if(link != null) {
|
||||||
a.text(link);
|
a.text(link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return description.select("body").first().html();
|
return description.select("body").first().html();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue