Fixed bug where videos are checked multiple times during synchronization. Fixed some errors when manually managing videos.

This commit is contained in:
2019-08-19 13:47:36 +03:00
parent 2ae41efb9e
commit d1c3700c02
2 changed files with 8 additions and 9 deletions

View File

@ -69,7 +69,7 @@ class SynchronizeJob(Job):
batch_ids = [video.video_id for video in batch]
video_stats = {v.id: v for v in self.__api.videos(batch_ids, part='id,statistics')}
for video in itertools.chain(work_vids, self.__new_vids):
for video in batch:
self.progress_advance(1, "Updating video " + video.name)
self.check_video_deleted(video)
self.fetch_missing_thumbnails(video)