mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 22:00:29 +05:30
Fix syncrunner extracting Streams unnecessarily.
This commit is contained in:
parent
287d75c607
commit
bf269aec5e
@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user