Add uploaderUrl to StreamInfoItem

This commit is contained in:
Coffeemakr 2017-11-11 12:46:14 +01:00
parent 6e42cb87e8
commit acf05b748c
No known key found for this signature in database
GPG Key ID: 3F35676D8FF6E743
2 changed files with 15 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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;
}