You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelExtractor.java
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -177,8 +177,12 @@ public long getSubscriberCount() throws ParsingException {
177
177
thrownewParsingException("Could not get subscriber count", e);
178
178
}
179
179
} else {
180
-
// If the element is null, the channel have the subscriber count disabled
181
-
return -1;
180
+
// If there's no subscribe button, the channel has the subscriber count disabled
181
+
if (initialData.getObject("header").getObject("c4TabbedHeaderRenderer").getObject("subscribeButton") == null) {
0 commit comments