diff --git a/src/main/java/me/kavin/piped/ServerLauncher.java b/src/main/java/me/kavin/piped/ServerLauncher.java index c16f562..16fee7a 100644 --- a/src/main/java/me/kavin/piped/ServerLauncher.java +++ b/src/main/java/me/kavin/piped/ServerLauncher.java @@ -64,8 +64,10 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher { Multithreading.runAsync(() -> { for (var entry : feed.getEntries()) { - ResponseHelper.handleNewVideo(entry.getLinks().get(0).getHref(), - entry.getPublishedDate().getTime(), null); + String url = entry.getLinks().get(0).getHref(); + if (DatabaseHelper.getVideoFromId(StringUtils.substring(url, -11)) != null) + continue; + ResponseHelper.handleNewVideo(url, entry.getPublishedDate().getTime(), null); } });