Only recheck premieres / lives for the channel being refreshed.

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

View file

@ -193,8 +193,8 @@ class Channel(ObjectBase):
# 2. Premieres or live events which may now be over but were not # 2. Premieres or live events which may now be over but were not
# included in the requested batch of IDs because they are not the most # included in the requested batch of IDs because they are not the most
# recent. # recent.
query = 'SELECT * FROM videos WHERE live_broadcast IS NOT NULL' query = 'SELECT * FROM videos WHERE author_id == ? AND live_broadcast IS NOT NULL'
videos = self.ycdldb.get_videos_by_sql(query) videos = self.ycdldb.get_videos_by_sql(query, [self.id])
refresh_ids.update(v.id for v in videos) refresh_ids.update(v.id for v in videos)
if refresh_ids: if refresh_ids: