Skip to content

Commit 540237d

Browse files
committed
make YoutubeChannelExtractor.getName() exception more expose
1 parent 6cdaef5 commit 540237d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/schabi/newpipe/extractor/services/youtube/YoutubeChannelExtractor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public String getName() throws ParsingException {
9393
try {
9494
return doc.select("span[class=\"qualified-channel-title-text\"]").first().select("a").first().text();
9595
} catch (Exception e) {
96-
throw new ParsingException("Could not get channel name");
96+
throw new ParsingException("Could not get channel name", e);
9797
}
9898
}
9999

@@ -201,7 +201,8 @@ private String getNextStreamsUrlFrom(Document d) throws ParsingException {
201201
}
202202
}
203203

204-
private void collectStreamsFrom(StreamInfoItemCollector collector, Element element) throws ParsingException {
204+
private void collectStreamsFrom(StreamInfoItemCollector collector,
205+
Element element) throws ParsingException {
205206
collector.getItemList().clear();
206207

207208
for (final Element li : element.children()) {

0 commit comments

Comments
 (0)