Fix call to get_video should have been get_videos.

This commit is contained in:
voussoir 2020-08-20 13:17:07 -07:00
parent 720db06d4c
commit 1eb9941e27

View file

@ -60,7 +60,7 @@ class Channel(Base):
# Of course, it's possible they were deleted. # Of course, it's possible they were deleted.
known_ids = {v.id for v in self.ycdldb.get_videos(channel_id=self.id)} known_ids = {v.id for v in self.ycdldb.get_videos(channel_id=self.id)}
refresh_ids = list(known_ids.difference(seen_ids)) refresh_ids = list(known_ids.difference(seen_ids))
for video in self.ycdldb.youtube.get_video(refresh_ids): for video in self.ycdldb.youtube.get_videos(refresh_ids):
self.ycdldb.insert_video(video, commit=False) self.ycdldb.insert_video(video, commit=False)
if commit: if commit: