Fix call to get_video should have been get_videos.
This commit is contained in:
parent
720db06d4c
commit
1eb9941e27
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue