mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 22:00:32 +05:30
Updated to reflect variable name change
This commit is contained in:
parent
9256b3b848
commit
ae48bdea4c
@ -46,7 +46,12 @@ public class YoutubeCommentsExtractor extends CommentsExtractor {
|
||||
|
||||
@Override
|
||||
public InfoItemsPage<CommentsInfoItem> getInitialPage() throws IOException, ExtractionException {
|
||||
final String commentsTokenInside = findValue(responseBody, "commentSectionRenderer", "}");
|
||||
String commentsTokenInside;
|
||||
if (responseBody.contains("commentSectionRenderer")) {
|
||||
commentsTokenInside = findValue(responseBody, "commentSectionRenderer", "}");
|
||||
} else{
|
||||
commentsTokenInside = findValue(responseBody, "sectionListRenderer", "}");
|
||||
}
|
||||
final String commentsToken = findValue(commentsTokenInside, "continuation\":\"", "\"");
|
||||
return getPage(getNextPage(commentsToken));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user