Remove backend for do() calls

This commit is contained in:
Florent 2014-10-09 11:04:09 +02:00
commit 628c63f899
33 changed files with 112 additions and 113 deletions

View file

@ -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)