diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java index fa03f7e13..537d8e069 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java @@ -46,7 +46,12 @@ public class YoutubeCommentsExtractor extends CommentsExtractor { @Override public InfoItemsPage 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)); }