Skip to content

Commit c4e16c7

Browse files
committed
fix hashtag parsing
1 parent 981cb33 commit c4e16c7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,11 @@ private String parseHtmlAndGetFullLinks(String descriptionHtml)
172172
// so we don't need to override it.
173173
final String link =
174174
Parser.compatParseMap(queryString).get("q");
175-
a.text(link);
175+
176+
// if link is null the a tag is a hashtag. They refer to the youtube search. We do not handle them.
177+
if(link != null) {
178+
a.text(link);
179+
}
176180
}
177181
}
178182
return description.select("body").first().html();

0 commit comments

Comments
 (0)