Add method get_videos_by_id.

This commit is contained in:
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

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 = []