mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2024-12-14 13:00:26 +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 view_count = -1;
|
||||||
public long duration = -1;
|
public long duration = -1;
|
||||||
|
|
||||||
|
private String uploaderUrl = null;
|
||||||
|
|
||||||
public StreamInfoItem() {
|
public StreamInfoItem() {
|
||||||
super(InfoType.STREAM);
|
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) {
|
} catch (Exception e) {
|
||||||
addError(e);
|
addError(e);
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
resultItem.setUploaderUrl(extractor.getUploaderUrl());
|
||||||
|
} catch (Exception e) {
|
||||||
|
addError(e);
|
||||||
|
}
|
||||||
return resultItem;
|
return resultItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user