Remove backend for do() calls
This commit is contained in:
parent
40a8bc0ce1
commit
628c63f899
33 changed files with 112 additions and 113 deletions
|
|
@ -20,7 +20,7 @@ class Videoobmc(Weboobmc):
|
|||
|
||||
fields = ['id', 'title', 'date', 'description', 'author', 'duration', 'thumbnail', 'url']
|
||||
try:
|
||||
for _backend, video in self.weboob.do(self._do_complete, self.count, fields, 'search_videos', **kwargs):
|
||||
for video in self.weboob.do(self._do_complete, self.count, fields, 'search_videos', **kwargs):
|
||||
yield video
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
@ -42,7 +42,7 @@ class Videoobmc(Weboobmc):
|
|||
def separate_collections_and_videos(self, objs):
|
||||
videos = []
|
||||
categories = []
|
||||
for backend, obj in objs:
|
||||
for obj in objs:
|
||||
if isinstance(obj, Collection):
|
||||
categories.append(obj)
|
||||
else:
|
||||
|
|
@ -50,5 +50,5 @@ class Videoobmc(Weboobmc):
|
|||
return categories, videos
|
||||
|
||||
def download(self, _id, dest, backend):
|
||||
for backend, _video in self.weboob.do('get_video', _id, backends=backend):
|
||||
for _video in self.weboob.do('get_video', _id, backends=backend):
|
||||
self.download_obj(_video, dest)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue