mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 16:30:29 +05:30
Fix error when playlist has no uploader.
This commit is contained in:
parent
97bd92e1fb
commit
50e5a8871a
@ -263,9 +263,10 @@ public class ResponseHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final Playlist playlist = new Playlist(info.getName(), rewriteURL(info.getThumbnailUrl()),
|
final Playlist playlist = new Playlist(info.getName(), rewriteURL(info.getThumbnailUrl()),
|
||||||
rewriteURL(info.getBannerUrl()), nextpage, body, info.getUploaderName(),
|
rewriteURL(info.getBannerUrl()), nextpage, body,
|
||||||
info.getUploaderUrl().substring(23), rewriteURL(info.getUploaderAvatarUrl()),
|
info.getUploaderName().isEmpty() ? null : info.getUploaderName(),
|
||||||
(int) info.getStreamCount(), relatedStreams);
|
info.getUploaderUrl().isEmpty() ? null : info.getUploaderUrl().substring(23),
|
||||||
|
rewriteURL(info.getUploaderAvatarUrl()), (int) info.getStreamCount(), relatedStreams);
|
||||||
|
|
||||||
return Constants.mapper.writeValueAsBytes(playlist);
|
return Constants.mapper.writeValueAsBytes(playlist);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user