Fix feed updates on manual subscription.

This commit is contained in:
FireMasterK 2021-07-17 19:32:57 +05:30
parent e626142c9c
commit 8b0c7d1eba
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -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();
}
}