From 6aeff3bc9f07205cbe1ac5d885e994f254c27881 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 25 Oct 2021 14:02:58 -0700 Subject: [PATCH] Only recheck premieres / lives for the channel being refreshed. --- ycdl/objects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ycdl/objects.py b/ycdl/objects.py index 8f095cb..f030d30 100644 --- a/ycdl/objects.py +++ b/ycdl/objects.py @@ -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: