Add verified info to ChannelInfo. (#714)
This commit is contained in:
parent
52910ce970
commit
4f86b8ce43
|
@ -113,6 +113,12 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
|
||||||
info.addError(e);
|
info.addError(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
info.setVerified(extractor.isVerified());
|
||||||
|
} catch (Exception e) {
|
||||||
|
info.addError(e);
|
||||||
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,6 +131,7 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
|
||||||
private long subscriberCount = -1;
|
private long subscriberCount = -1;
|
||||||
private String description;
|
private String description;
|
||||||
private String[] donationLinks;
|
private String[] donationLinks;
|
||||||
|
private boolean verified;
|
||||||
|
|
||||||
public String getParentChannelName() {
|
public String getParentChannelName() {
|
||||||
return parentChannelName;
|
return parentChannelName;
|
||||||
|
@ -197,4 +204,12 @@ public class ChannelInfo extends ListInfo<StreamInfoItem> {
|
||||||
public void setDonationLinks(String[] donationLinks) {
|
public void setDonationLinks(String[] donationLinks) {
|
||||||
this.donationLinks = donationLinks;
|
this.donationLinks = donationLinks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isVerified() {
|
||||||
|
return verified;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVerified(boolean verified) {
|
||||||
|
this.verified = verified;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue