mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Add uploaded field to StreamItem. (#183)
This commit is contained in:
parent
b54248b47f
commit
cf32a60ed1
2 changed files with 4 additions and 3 deletions
|
@ -1046,6 +1046,6 @@ public class ResponseHelper {
|
|||
return new StreamItem(substringYouTube(item.getUrl()), item.getName(), rewriteURL(item.getThumbnailUrl()),
|
||||
item.getUploaderName(), substringYouTube(item.getUploaderUrl()),
|
||||
rewriteURL(item.getUploaderAvatarUrl()), item.getTextualUploadDate(), item.getDuration(),
|
||||
item.getViewCount(), item.isUploaderVerified());
|
||||
item.getViewCount(), item.getUploadDate() != null ? item.getUploadDate().offsetDateTime().toInstant().toEpochMilli() : -1, item.isUploaderVerified());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,11 +3,11 @@ package me.kavin.piped.utils.obj;
|
|||
public class StreamItem {
|
||||
|
||||
public String url, title, thumbnail, uploaderName, uploaderUrl, uploaderAvatar, uploadedDate;
|
||||
public long duration, views;
|
||||
public long duration, views, uploaded;
|
||||
public boolean uploaderVerified;
|
||||
|
||||
public StreamItem(String url, String title, String thumbnail, String uploaderName, String uploaderUrl,
|
||||
String uploaderAvatar, String uploadedDate, long duration, long views, boolean uploaderVerified) {
|
||||
String uploaderAvatar, String uploadedDate, long duration, long views, long uploaded, boolean uploaderVerified) {
|
||||
this.url = url;
|
||||
this.title = title;
|
||||
this.thumbnail = thumbnail;
|
||||
|
@ -17,6 +17,7 @@ public class StreamItem {
|
|||
this.uploadedDate = uploadedDate;
|
||||
this.duration = duration;
|
||||
this.views = views;
|
||||
this.uploaded = uploaded;
|
||||
this.uploaderVerified = uploaderVerified;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue