mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-05 21:11:05 +02:00
Fix ClassCastException. (#235)
This commit is contained in:
parent
0cea0a50f5
commit
11845f26fc
@ -142,7 +142,10 @@ public class ResponseHelper {
|
||||
|
||||
final List<StreamItem> relatedStreams = new ObjectArrayList<>();
|
||||
|
||||
info.getRelatedItems().forEach(o -> relatedStreams.add(collectRelatedStream(o)));
|
||||
info.getRelatedItems().forEach(o -> {
|
||||
if (o instanceof StreamInfoItem)
|
||||
relatedStreams.add(collectRelatedStream(o));
|
||||
});
|
||||
|
||||
long time = info.getUploadDate() != null ? info.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
||||
: System.currentTimeMillis();
|
||||
|
Loading…
x
Reference in New Issue
Block a user