mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix error when playlist has no uploader.
This commit is contained in:
parent
97bd92e1fb
commit
50e5a8871a
1 changed files with 4 additions and 3 deletions
|
@ -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…
Reference in a new issue