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