mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
add category
This commit is contained in:
parent
cace6cce05
commit
8d0012cb8a
2 changed files with 4 additions and 3 deletions
|
@ -62,7 +62,7 @@ public class CollectionUtils {
|
|||
rewriteURL(info.getUploaderAvatarUrl()), rewriteURL(info.getThumbnailUrl()), info.getDuration(),
|
||||
info.getViewCount(), info.getLikeCount(), info.getDislikeCount(), info.getUploaderSubscriberCount(), info.isUploaderVerified(),
|
||||
audioStreams, videoStreams, relatedStreams, subtitles, livestream, rewriteVideoURL(info.getHlsUrl()),
|
||||
rewriteVideoURL(info.getDashMpdUrl()), null, chapters, previewFrames);
|
||||
rewriteVideoURL(info.getDashMpdUrl()), null, chapters, previewFrames, info.getCategory());
|
||||
}
|
||||
|
||||
public static List<ContentItem> collectRelatedItems(List<? extends InfoItem> items) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||
public class Streams {
|
||||
|
||||
public String title, description, uploadDate, uploader, uploaderUrl, uploaderAvatar, thumbnailUrl, hls, dash,
|
||||
lbryId;
|
||||
lbryId, category;
|
||||
|
||||
public boolean uploaderVerified;
|
||||
|
||||
|
@ -33,7 +33,7 @@ public class Streams {
|
|||
String uploaderAvatar, String thumbnailUrl, long duration, long views, long likes, long dislikes, long uploaderSubscriberCount,
|
||||
boolean uploaderVerified, List<PipedStream> audioStreams, List<PipedStream> videoStreams,
|
||||
List<ContentItem> relatedStreams, List<Subtitle> subtitles, boolean livestream, String hls, String dash,
|
||||
String lbryId, List<ChapterSegment> chapters, List<PreviewFrames> previewFrames) {
|
||||
String lbryId, List<ChapterSegment> chapters, List<PreviewFrames> previewFrames, String category) {
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.uploadDate = uploadDate;
|
||||
|
@ -57,5 +57,6 @@ public class Streams {
|
|||
this.lbryId = lbryId;
|
||||
this.chapters = chapters;
|
||||
this.previewFrames = previewFrames;
|
||||
this.category = category;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue