From 857b2f39e87353f4617706829dd42231e457a87e Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 3 Sep 2021 21:27:58 +0530 Subject: [PATCH] Extract uploaderVerified to StreamInfo. --- .../newpipe/extractor/stream/StreamInfo.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java b/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java index 665ed5988..455f0dc46 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java @@ -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; }