add category

This commit is contained in:
Alin 2023-02-16 16:12:29 +00:00
parent cace6cce05
commit 8d0012cb8a
2 changed files with 4 additions and 3 deletions

View file

@ -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) {

View file

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