Update extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java
Co-authored-by: Tobi <TobiGr@users.noreply.github.com>
This commit is contained in:
parent
ed850d0688
commit
ff5273b882
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public class YoutubeCommentsExtractor extends CommentsExtractor {
|
||||||
@Override
|
@Override
|
||||||
public InfoItemsPage<CommentsInfoItem> getInitialPage() throws IOException, ExtractionException {
|
public InfoItemsPage<CommentsInfoItem> getInitialPage() throws IOException, ExtractionException {
|
||||||
String commentsTokenInside = findValue(responseBody, "sectionListRenderer", "}");
|
String commentsTokenInside = findValue(responseBody, "sectionListRenderer", "}");
|
||||||
if (!commentsTokenInside.contains("continuation")) {
|
if (!commentsTokenInside.contains("continuation\":\"")) {
|
||||||
commentsTokenInside = findValue(responseBody, "commentSectionRenderer", "}");
|
commentsTokenInside = findValue(responseBody, "commentSectionRenderer", "}");
|
||||||
}
|
}
|
||||||
final String commentsToken = findValue(commentsTokenInside, "continuation\":\"", "\"");
|
final String commentsToken = findValue(commentsTokenInside, "continuation\":\"", "\"");
|
||||||
|
|
Loading…
Reference in a new issue