mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 08:20:30 +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()),
|
||||
rewriteURL(info.getBannerUrl()), nextpage, body, info.getUploaderName(),
|
||||
info.getUploaderUrl().substring(23), rewriteURL(info.getUploaderAvatarUrl()),
|
||||
(int) info.getStreamCount(), relatedStreams);
|
||||
rewriteURL(info.getBannerUrl()), nextpage, body,
|
||||
info.getUploaderName().isEmpty() ? null : info.getUploaderName(),
|
||||
info.getUploaderUrl().isEmpty() ? null : info.getUploaderUrl().substring(23),
|
||||
rewriteURL(info.getUploaderAvatarUrl()), (int) info.getStreamCount(), relatedStreams);
|
||||
|
||||
return Constants.mapper.writeValueAsBytes(playlist);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user