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