Fix ClassCastException.

This commit is contained in:
Kavin 2022-03-30 17:45:08 +01:00
parent 0cea0a50f5
commit b0458c1f89
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -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();