Don't bother trying to iterate refresh_ids if it's empty.
This commit is contained in:
parent
6aeff3bc9f
commit
b33a01065e
1 changed files with 4 additions and 5 deletions
|
@ -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):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue