From 1b41b752436c71a02198519319e5275bb5528076 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 30 Aug 2023 23:53:04 +0100 Subject: [PATCH] Fix extractor not fetching page. --- src/main/java/me/kavin/piped/utils/VideoHelpers.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/VideoHelpers.java b/src/main/java/me/kavin/piped/utils/VideoHelpers.java index 874a0de..c1dc5cb 100644 --- a/src/main/java/me/kavin/piped/utils/VideoHelpers.java +++ b/src/main/java/me/kavin/piped/utils/VideoHelpers.java @@ -24,7 +24,9 @@ import static org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper public class VideoHelpers { public static void handleNewVideo(String url, long time, me.kavin.piped.utils.obj.db.Channel channel) { try { - handleNewVideo(YOUTUBE_SERVICE.getStreamExtractor(url), time, channel); + var extractor = YOUTUBE_SERVICE.getStreamExtractor(url); + extractor.fetchPage(); + handleNewVideo(extractor, time, channel); } catch (Exception e) { ExceptionHandler.handle(e); }