Merge pull request #466 from TeamPiped/sync-cpu

Fix syncrunner extracting Streams unnecessarily.
This commit is contained in:
Kavin 2022-11-23 21:24:52 +00:00 committed by GitHub
commit de7d006c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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