Merge pull request #724 from FireMasterK/streams-uploader-verified

Extract uploaderVerified to StreamInfo.
This commit is contained in:
Tobi 2021-09-03 18:18:04 +02:00 committed by GitHub
commit f0aa46b008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -230,6 +230,11 @@ public class StreamInfo extends Info {
} catch (Exception e) {
streamInfo.addError(e);
}
try {
streamInfo.setUploaderVerified(extractor.isUploaderVerified());
} catch (Exception e) {
streamInfo.addError(e);
}
try {
streamInfo.setSubChannelName(extractor.getSubChannelName());
@ -361,6 +366,7 @@ public class StreamInfo extends Info {
private String uploaderName = "";
private String uploaderUrl = "";
private String uploaderAvatarUrl = "";
private boolean uploaderVerified = false;
private String subChannelName = "";
private String subChannelUrl = "";
@ -526,6 +532,14 @@ public class StreamInfo extends Info {
this.uploaderAvatarUrl = uploaderAvatarUrl;
}
public boolean isUploaderVerified() {
return uploaderVerified;
}
public void setUploaderVerified(final boolean uploaderVerified) {
this.uploaderVerified = uploaderVerified;
}
public String getSubChannelName() {
return subChannelName;
}