Add method get_videos_by_id.

master
voussoir 2021-11-07 18:51:49 -08:00
parent 1b422544d9
commit 63c332ea52
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 3 additions and 0 deletions

View File

@ -213,6 +213,9 @@ class YCDLDBVideoMixin:
def get_video(self, video_id):
return self.get_object_by_id(objects.Video, video_id)
def get_videos_by_id(self, video_ids):
return self.get_objects_by_id(objects.Video, video_ids)
def get_videos(self, channel_id=None, *, state=None, orderby=None):
wheres = []
orderbys = []