Commit 540237d8 authored by Christian Schabesberger's avatar Christian Schabesberger
Browse files

make YoutubeChannelExtractor.getName() exception more expose

parent 6cdaef53
......@@ -93,7 +93,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
try {
return doc.select("span[class=\"qualified-channel-title-text\"]").first().select("a").first().text();
} catch (Exception e) {
throw new ParsingException("Could not get channel name");
throw new ParsingException("Could not get channel name", e);
}
}
......@@ -201,7 +201,8 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
}
}
private void collectStreamsFrom(StreamInfoItemCollector collector, Element element) throws ParsingException {
private void collectStreamsFrom(StreamInfoItemCollector collector,
Element element) throws ParsingException {
collector.getItemList().clear();
for (final Element li : element.children()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment