Merge pull request #491 from TeamPiped/rewrite-images

Rewrite images to proxy in preview frames.
This commit is contained in:
Kavin 2022-12-15 17:57:44 +00:00 committed by GitHub
commit 8ca317353e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ public class CollectionUtils {
final List<PreviewFrames> previewFrames = new ObjectArrayList<>();
info.getPreviewFrames().forEach(frame -> previewFrames.add(new PreviewFrames(frame.getUrls(), frame.getFrameWidth(),
info.getPreviewFrames().forEach(frame -> previewFrames.add(new PreviewFrames(frame.getUrls().stream().map(URLUtils::rewriteURL).toList(), frame.getFrameWidth(),
frame.getFrameHeight(), frame.getTotalCount(), frame.getDurationPerFrame(), frame.getFramesPerPageX(),
frame.getFramesPerPageY())));