mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-14 06:10: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.getViews(),
|
||||||
info.getDuration(),
|
info.getDuration(),
|
||||||
info.getTitle())) {
|
info.getTitle())) {
|
||||||
VideoHelpers.handleNewVideo("https://www.youtube.com/watch?v=" + info.getVideoId(),
|
var channel = DatabaseHelper.getChannelFromId(info.getUploaderId());
|
||||||
System.currentTimeMillis(), null);
|
if (channel != null)
|
||||||
|
VideoHelpers.handleNewVideo("https://www.youtube.com/watch?v=" + info.getVideoId(),
|
||||||
|
System.currentTimeMillis(), channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user