mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix syncrunner extracting Streams unnecessarily.
This commit is contained in:
parent
287d75c607
commit
bf269aec5e
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue