diff --git a/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java b/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java index 5e9dfc0..55ffe52 100644 --- a/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java +++ b/src/main/java/me/kavin/piped/utils/matrix/SyncRunner.java @@ -141,8 +141,10 @@ public class SyncRunner implements Runnable { info.getViews(), info.getDuration(), info.getTitle())) { - VideoHelpers.handleNewVideo("https://www.youtube.com/watch?v=" + info.getVideoId(), - System.currentTimeMillis(), null); + var channel = DatabaseHelper.getChannelFromId(info.getUploaderId()); + if (channel != null) + VideoHelpers.handleNewVideo("https://www.youtube.com/watch?v=" + info.getVideoId(), + System.currentTimeMillis(), channel); } });