Only recheck premieres / lives for the channel being refreshed.
This commit is contained in:
parent
6370e36c84
commit
6aeff3bc9f
1 changed files with 2 additions and 2 deletions
|
@ -193,8 +193,8 @@ class Channel(ObjectBase):
|
|||
# 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
|
||||
# recent.
|
||||
query = 'SELECT * FROM videos WHERE live_broadcast IS NOT NULL'
|
||||
videos = self.ycdldb.get_videos_by_sql(query)
|
||||
query = 'SELECT * FROM videos WHERE author_id == ? AND live_broadcast IS NOT NULL'
|
||||
videos = self.ycdldb.get_videos_by_sql(query, [self.id])
|
||||
refresh_ids.update(v.id for v in videos)
|
||||
|
||||
if refresh_ids:
|
||||
|
|
Loading…
Reference in a new issue