mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 05:40:34 +05:30
testing
This commit is contained in:
parent
e04787f340
commit
6a0341d59c
@ -43,6 +43,10 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem>{
|
||||
commentsExtractor);
|
||||
commentsInfo.setComments(new ArrayList<>());
|
||||
commentsInfo.getComments().addAll(initialCommentsPage.getItems());
|
||||
//tmp
|
||||
commentsInfo.setRelatedItems(initialCommentsPage.getItems());
|
||||
commentsInfo.setNextCommentsPageUrl(initialCommentsPage.getNextPageUrl());
|
||||
|
||||
commentsInfo.setHasMoreComments(initialCommentsPage.hasNextPage());
|
||||
commentsInfo.setNextCommentsPageUrl(initialCommentsPage.getNextPageUrl());
|
||||
return commentsInfo;
|
||||
@ -53,7 +57,8 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem>{
|
||||
if(null == commentsInfo.getCommentsExtractor()) {
|
||||
try {
|
||||
commentsInfo.setCommentsExtractor(NewPipe.getService(commentsInfo.getServiceId()).getCommentsExtractor(commentsInfo.getUrl()));
|
||||
} catch (ExtractionException e) {
|
||||
commentsInfo.getCommentsExtractor().fetchPage();
|
||||
} catch (ExtractionException | IOException e) {
|
||||
commentsInfo.addError(e);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user