make YoutubeChannelExtractor.getName() exception more expose

This commit is contained in:
Christian Schabesberger 2017-09-09 21:42:42 +02:00
parent 6cdaef53f9
commit 540237d8fc
1 changed files with 3 additions and 2 deletions

View File

@ -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()) {