From 322610dbbb33be61a6f3589d1e0ff5e163f87386 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 13 Jan 2022 04:22:09 +0000 Subject: [PATCH] Rewrite chapter image URLs. (#167) --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index 4b34eab..6f5a23a 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -146,8 +146,8 @@ public class ResponseHelper { final StreamInfo info = futureStream.get(); info.getStreamSegments().forEach(segment -> { - chapters.add( - new ChapterSegment(segment.getTitle(), segment.getPreviewUrl(), segment.getStartTimeSeconds())); + chapters.add(new ChapterSegment(segment.getTitle(), rewriteURL(segment.getPreviewUrl()), + segment.getStartTimeSeconds())); }); info.getSubtitles()