Skip to content

Commit ae28331

Browse files
committed
Add a comment explaining subscribers count calculation
1 parent abb790f commit ae28331

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubeAccountExtractor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public String getFeedUrl() throws ParsingException {
5959

6060
@Override
6161
public long getSubscriberCount() throws ParsingException {
62+
// The subscriber count cannot be retrieved directly. It needs to be calculated.
63+
// An accounts subscriber count is the number of the channel owner's subscriptions
64+
// plus the sum of all sub channels subscriptions.
6265
long subscribersCount = json.getLong("followersCount");
6366
String accountVideoChannelUrl = baseUrl + PeertubeChannelLinkHandlerFactory.API_ENDPOINT;
6467
if (getId().contains(ACCOUNTS)) {

0 commit comments

Comments
 (0)