Add a comment explaining subscribers count calculation

This commit is contained in:
TiA4f8R 2021-03-25 17:54:46 +01:00
parent abb790f465
commit ae283314da
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD

View File

@ -59,6 +59,9 @@ public class PeertubeAccountExtractor extends ChannelExtractor {
@Override
public long getSubscriberCount() throws ParsingException {
// The subscriber count cannot be retrieved directly. It needs to be calculated.
// An accounts subscriber count is the number of the channel owner's subscriptions
// plus the sum of all sub channels subscriptions.
long subscribersCount = json.getLong("followersCount");
String accountVideoChannelUrl = baseUrl + PeertubeChannelLinkHandlerFactory.API_ENDPOINT;
if (getId().contains(ACCOUNTS)) {