mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 08:20:30 +05:30
Fix feed updates on manual subscription.
This commit is contained in:
parent
e626142c9c
commit
8b0c7d1eba
@ -608,7 +608,7 @@ public class ResponseHelper {
|
|||||||
? item.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
? item.getUploadDate().offsetDateTime().toInstant().toEpochMilli()
|
||||||
: System.currentTimeMillis();
|
: System.currentTimeMillis();
|
||||||
if ((System.currentTimeMillis() - time) < TimeUnit.DAYS.toMillis(10))
|
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) {
|
public static void handleNewVideo(String url, long time, me.kavin.piped.utils.obj.db.Channel channel, Session s) {
|
||||||
try {
|
try {
|
||||||
handleNewVideo(StreamInfo.getInfo(url), time, channel, s);
|
handleNewVideo(StreamInfo.getInfo(url), time, channel, s);
|
||||||
} catch (IOException | ExtractionException e) {
|
} catch (Exception e) {
|
||||||
ExceptionUtils.rethrow(e);
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user