Fix syncrunner extracting Streams unnecessarily.

This commit is contained in:
Kavin 2022-11-23 21:24:30 +00:00
parent 287d75c607
commit bf269aec5e
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

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