Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add verified info to ChannelInfo. #714

Merged
merged 1 commit into from
Aug 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ public static ChannelInfo getInfo(ChannelExtractor extractor) throws IOException
info.addError(e);
}

try {
info.setVerified(extractor.isVerified());
} catch (Exception e) {
info.addError(e);
}

return info;
}

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

public String getParentChannelName() {
return parentChannelName;
Expand Down Expand Up @@ -197,4 +204,12 @@ public String[] getDonationLinks() {
public void setDonationLinks(String[] donationLinks) {
this.donationLinks = donationLinks;
}

public boolean isVerified() {
return verified;
}

public void setVerified(boolean verified) {
this.verified = verified;
}
}