Add verified info to ChannelInfo. (#714)

This commit is contained in:
FireMasterK 2021-08-17 16:38:49 +05:30 committed by GitHub
parent 52910ce970
commit 4f86b8ce43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -113,6 +113,12 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
info.addError(e);
}
try {
info.setVerified(extractor.isVerified());
} catch (Exception e) {
info.addError(e);
}
return info;
}
@ -125,6 +131,7 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
private long subscriberCount = -1;
private String description;
private String[] donationLinks;
private boolean verified;
public String getParentChannelName() {
return parentChannelName;
@ -197,4 +204,12 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
public void setDonationLinks(String[] donationLinks) {
this.donationLinks = donationLinks;
}
public boolean isVerified() {
return verified;
}
public void setVerified(boolean verified) {
this.verified = verified;
}
}