diff --git a/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java b/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java index 779a68a..e0d3478 100644 --- a/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java +++ b/src/main/java/me/kavin/piped/server/handlers/StreamHandlers.java @@ -101,7 +101,7 @@ public class StreamHandlers { final List subtitles = new ObjectArrayList<>(); final List chapters = new ObjectArrayList<>(); - final StreamInfo info = futureStream.get(); + final StreamInfo info = futureStream.get(10, TimeUnit.SECONDS); info.getStreamSegments().forEach(segment -> chapters.add(new ChapterSegment(segment.getTitle(), rewriteURL(segment.getPreviewUrl()), segment.getStartTimeSeconds())));