From 8b0c7d1eba1cfc236ffa701fe6cec369222ea81d Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sat, 17 Jul 2021 19:32:57 +0530 Subject: [PATCH] Fix feed updates on manual subscription. --- src/main/java/me/kavin/piped/utils/ResponseHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index d634796..1f26898 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -608,7 +608,7 @@ public class ResponseHelper { ? item.getUploadDate().offsetDateTime().toInstant().toEpochMilli() : System.currentTimeMillis(); if ((System.currentTimeMillis() - time) < TimeUnit.DAYS.toMillis(10)) - handleNewVideo(item.getUrl(), time, channel, s); + handleNewVideo(item.getUrl(), time, channel, sess); } } @@ -813,8 +813,8 @@ public class ResponseHelper { public static void handleNewVideo(String url, long time, me.kavin.piped.utils.obj.db.Channel channel, Session s) { try { handleNewVideo(StreamInfo.getInfo(url), time, channel, s); - } catch (IOException | ExtractionException e) { - ExceptionUtils.rethrow(e); + } catch (Exception e) { + e.printStackTrace(); } }