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()),
|
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…
Reference in a new issue