diff --git a/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItem.java b/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItem.java index 1894c8085..08ac63d63 100644 --- a/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItem.java +++ b/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItem.java @@ -33,7 +33,17 @@ public class StreamInfoItem extends InfoItem { public long view_count = -1; public long duration = -1; + private String uploaderUrl = null; + public StreamInfoItem() { super(InfoType.STREAM); } + + public void setUploaderUrl(String uploaderUrl) { + this.uploaderUrl = uploaderUrl; + } + + public String getUploaderUrl() { + return uploaderUrl; + } } \ No newline at end of file diff --git a/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItemCollector.java b/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItemCollector.java index b0757b886..1a26df4d1 100644 --- a/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItemCollector.java +++ b/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItemCollector.java @@ -72,6 +72,11 @@ public class StreamInfoItemCollector extends InfoItemCollector { } catch (Exception e) { addError(e); } + try { + resultItem.setUploaderUrl(extractor.getUploaderUrl()); + } catch (Exception e) { + addError(e); + } return resultItem; }