mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2024-12-13 20:40:03 +01:00
Add uploaderUrl to StreamInfoItem
This commit is contained in:
parent
6e42cb87e8
commit
acf05b748c
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user