mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-14 06:10:29 +05:30
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<>();
|
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()
|
long time = info.getUploadDate() != null ? info.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
||||||
: System.currentTimeMillis();
|
: System.currentTimeMillis();
|
||||||
|
Loading…
Reference in New Issue
Block a user