From 757ef1722cdc3fe813a53a490217fc35ea09776e Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 15 Dec 2022 17:47:35 +0000 Subject: [PATCH] Fix typo to actually add to array. --- src/main/java/me/kavin/piped/utils/CollectionUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/CollectionUtils.java b/src/main/java/me/kavin/piped/utils/CollectionUtils.java index c6306b5..b9041cc 100644 --- a/src/main/java/me/kavin/piped/utils/CollectionUtils.java +++ b/src/main/java/me/kavin/piped/utils/CollectionUtils.java @@ -24,8 +24,9 @@ public class CollectionUtils { final List previewFrames = new ObjectArrayList<>(); - info.getPreviewFrames().forEach(frame -> new PreviewFrames(frame.getUrls(), frame.getFrameWidth(), frame.getFrameHeight(), - frame.getTotalCount(), frame.getDurationPerFrame(), frame.getFramesPerPageX(), frame.getFramesPerPageY())); + info.getPreviewFrames().forEach(frame -> previewFrames.add(new PreviewFrames(frame.getUrls(), frame.getFrameWidth(), + frame.getFrameHeight(), frame.getTotalCount(), frame.getDurationPerFrame(), frame.getFramesPerPageX(), + frame.getFramesPerPageY()))); info.getSubtitles() .forEach(subtitle -> subtitles.add(new Subtitle(rewriteURL(subtitle.getContent()),