mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 22:30:33 +05:30
Add a comment explaining subscribers count calculation
This commit is contained in:
parent
abb790f465
commit
ae283314da
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user