make YoutubeChannelExtractor.getName() exception more expose
This commit is contained in:
parent
6cdaef53f9
commit
540237d8fc
1 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
|
||||||
try {
|
try {
|
||||||
return doc.select("span[class=\"qualified-channel-title-text\"]").first().select("a").first().text();
|
return doc.select("span[class=\"qualified-channel-title-text\"]").first().select("a").first().text();
|
||||||
} catch (Exception e) {
|
} 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();
|
collector.getItemList().clear();
|
||||||
|
|
||||||
for (final Element li : element.children()) {
|
for (final Element li : element.children()) {
|
||||||
|
|
Loading…
Reference in a new issue