Skip to content

Commit 4f86b8c

Browse files
authored
Add verified info to ChannelInfo. (#714)
1 parent 52910ce commit 4f86b8c

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelInfo.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ public static ChannelInfo getInfo(ChannelExtractor extractor) throws IOException
113113
info.addError(e);
114114
}
115115

116+
try {
117+
info.setVerified(extractor.isVerified());
118+
} catch (Exception e) {
119+
info.addError(e);
120+
}
121+
116122
return info;
117123
}
118124

@@ -125,6 +131,7 @@ public static ChannelInfo getInfo(ChannelExtractor extractor) throws IOException
125131
private long subscriberCount = -1;
126132
private String description;
127133
private String[] donationLinks;
134+
private boolean verified;
128135

129136
public String getParentChannelName() {
130137
return parentChannelName;
@@ -197,4 +204,12 @@ public String[] getDonationLinks() {
197204
public void setDonationLinks(String[] donationLinks) {
198205
this.donationLinks = donationLinks;
199206
}
207+
208+
public boolean isVerified() {
209+
return verified;
210+
}
211+
212+
public void setVerified(boolean verified) {
213+
this.verified = verified;
214+
}
200215
}

0 commit comments

Comments
 (0)