diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index 845a3ad..df80e05 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -238,7 +238,7 @@ public class ResponseHelper { } final Channel channel = new Channel(info.getId(), info.getName(), rewriteURL(info.getAvatarUrl()), - rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, relatedStreams); + rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, info.getSubscriberCount(), relatedStreams); IPFS.publishData(channel); diff --git a/src/main/java/me/kavin/piped/utils/obj/Channel.java b/src/main/java/me/kavin/piped/utils/obj/Channel.java index 2138bb7..2e55828 100644 --- a/src/main/java/me/kavin/piped/utils/obj/Channel.java +++ b/src/main/java/me/kavin/piped/utils/obj/Channel.java @@ -5,16 +5,18 @@ import java.util.List; public class Channel { public String id, name, avatarUrl, bannerUrl, description, nextpage; + public long subscriberCount; public List relatedStreams; public Channel(String id, String name, String avatarUrl, String bannerUrl, String description, String nextpage, - List relatedStreams) { + long subscriberCount, List relatedStreams) { this.id = id; this.name = name; this.avatarUrl = avatarUrl; this.bannerUrl = bannerUrl; this.description = description; this.nextpage = nextpage; + this.subscriberCount = subscriberCount; this.relatedStreams = relatedStreams; } }