Skip to content

Commit 948a782

Browse files
committed
fetch channel id for channel url
1 parent 8de5311 commit 948a782

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public String getAuthorName() throws ParsingException {
9999
@Override
100100
public String getAuthorEndpoint() throws ParsingException {
101101
try {
102-
return "https://youtube.com" + JsonUtils.getString(json, "authorEndpoint.browseEndpoint.canonicalBaseUrl");
102+
return "https://youtube.com/channel/" + JsonUtils.getString(json, "authorEndpoint.browseEndpoint.browseId");
103103
} catch (Exception e) {
104104
throw new ParsingException("Could not get author endpoint", e);
105105
}

0 commit comments

Comments
 (0)