Skip to content

Commit 5305880

Browse files
yausernametheScrabi
authored andcommitted
fix comment url
1 parent e072bf6 commit 5305880

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ public InfoItemsPage<CommentsInfoItem> getPage(String pageUrl) throws IOExceptio
107107
throw new ParsingException("Could not parse json data for comments", e);
108108
}
109109
CommentsInfoItemsCollector collector = new CommentsInfoItemsCollector(getServiceId());
110-
collectCommentsFrom(collector, ajaxJson, pageUrl);
110+
collectCommentsFrom(collector, ajaxJson);
111111
return new InfoItemsPage<>(collector, getNextPageUrl(ajaxJson));
112112
}
113113

114-
private void collectCommentsFrom(CommentsInfoItemsCollector collector, JsonObject ajaxJson, String pageUrl) throws ParsingException {
114+
private void collectCommentsFrom(CommentsInfoItemsCollector collector, JsonObject ajaxJson) throws ParsingException {
115115

116116
JsonArray contents;
117117
try {
@@ -130,7 +130,7 @@ private void collectCommentsFrom(CommentsInfoItemsCollector collector, JsonObjec
130130

131131
for(Object c: comments) {
132132
if(c instanceof JsonObject) {
133-
CommentsInfoItemExtractor extractor = new YoutubeCommentsInfoItemExtractor((JsonObject) c, pageUrl);
133+
CommentsInfoItemExtractor extractor = new YoutubeCommentsInfoItemExtractor((JsonObject) c, getUrl());
134134
collector.commit(extractor);
135135
}
136136
}

0 commit comments

Comments
 (0)