mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-05 21:11:05 +02:00
Add Dash URL to streams response.
This commit is contained in:
parent
aed1da4aae
commit
e4f071b72a
@ -193,7 +193,7 @@ public class ResponseHelper {
|
|||||||
info.getTextualUploadDate(), info.getUploaderName(), info.getUploaderUrl().substring(23),
|
info.getTextualUploadDate(), info.getUploaderName(), info.getUploaderUrl().substring(23),
|
||||||
rewriteURL(info.getUploaderAvatarUrl()), rewriteURL(info.getThumbnailUrl()), info.getDuration(),
|
rewriteURL(info.getUploaderAvatarUrl()), rewriteURL(info.getThumbnailUrl()), info.getDuration(),
|
||||||
info.getViewCount(), info.getLikeCount(), info.getDislikeCount(), audioStreams, videoStreams,
|
info.getViewCount(), info.getLikeCount(), info.getDislikeCount(), audioStreams, videoStreams,
|
||||||
relatedStreams, subtitles, livestream, hls, futureLbryId.get());
|
relatedStreams, subtitles, livestream, hls, info.getDashMpdUrl(), futureLbryId.get());
|
||||||
|
|
||||||
return Constants.mapper.writeValueAsBytes(streams);
|
return Constants.mapper.writeValueAsBytes(streams);
|
||||||
|
|
||||||
@ -238,7 +238,8 @@ public class ResponseHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Channel channel = new Channel(info.getId(), info.getName(), rewriteURL(info.getAvatarUrl()),
|
final Channel channel = new Channel(info.getId(), info.getName(), rewriteURL(info.getAvatarUrl()),
|
||||||
rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, info.getSubscriberCount(), relatedStreams);
|
rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, info.getSubscriberCount(),
|
||||||
|
relatedStreams);
|
||||||
|
|
||||||
IPFS.publishData(channel);
|
IPFS.publishData(channel);
|
||||||
|
|
||||||
|
@ -6,7 +6,8 @@ import me.kavin.piped.consts.Constants;
|
|||||||
|
|
||||||
public class Streams {
|
public class Streams {
|
||||||
|
|
||||||
public String title, description, uploadDate, uploader, uploaderUrl, uploaderAvatar, thumbnailUrl, hls, lbryId;
|
public String title, description, uploadDate, uploader, uploaderUrl, uploaderAvatar, thumbnailUrl, hls, dash,
|
||||||
|
lbryId;
|
||||||
|
|
||||||
public long duration, views, likes, dislikes;
|
public long duration, views, likes, dislikes;
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ public class Streams {
|
|||||||
public Streams(String title, String description, String uploadDate, String uploader, String uploaderUrl,
|
public Streams(String title, String description, String uploadDate, String uploader, String uploaderUrl,
|
||||||
String uploaderAvatar, String thumbnailUrl, long duration, long views, long likes, long dislikes,
|
String uploaderAvatar, String thumbnailUrl, long duration, long views, long likes, long dislikes,
|
||||||
List<PipedStream> audioStreams, List<PipedStream> videoStreams, List<StreamItem> relatedStreams,
|
List<PipedStream> audioStreams, List<PipedStream> videoStreams, List<StreamItem> relatedStreams,
|
||||||
List<Subtitle> subtitles, boolean livestream, String hls, String lbryId) {
|
List<Subtitle> subtitles, boolean livestream, String hls, String dash, String lbryId) {
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.uploadDate = uploadDate;
|
this.uploadDate = uploadDate;
|
||||||
@ -41,6 +42,7 @@ public class Streams {
|
|||||||
this.subtitles = subtitles;
|
this.subtitles = subtitles;
|
||||||
this.livestream = livestream;
|
this.livestream = livestream;
|
||||||
this.hls = hls;
|
this.hls = hls;
|
||||||
|
this.dash = dash;
|
||||||
this.lbryId = lbryId;
|
this.lbryId = lbryId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user