Don't bother trying to iterate refresh_ids if it's empty.

This commit is contained in:
voussoir 2021-10-25 14:04:08 -07:00
parent 6aeff3bc9f
commit b33a01065e
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -199,11 +199,10 @@ class Channel(ObjectBase):
if refresh_ids: if refresh_ids:
log.debug('Refreshing %d ids separately.', len(refresh_ids)) log.debug('Refreshing %d ids separately.', len(refresh_ids))
# We call ingest_video instead of insert_video so that
# We call ingest_video instead of insert_video so that # premieres / livestreams which have finished can be automarked.
# premieres / livestreams which have finished can be automarked. for video_id in self.ycdldb.youtube.get_videos(refresh_ids):
for video_id in self.ycdldb.youtube.get_videos(refresh_ids): self.ycdldb.ingest_video(video_id)
self.ycdldb.ingest_video(video_id)
def reset_uploads_playlist_id(self): def reset_uploads_playlist_id(self):
''' '''