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

@ -146,7 +146,7 @@ class Suboob(ReplApplication):
ext = 'zip'
dest = '%s.%s' % (subtitle.name, ext)
for backend, buf in self.do('get_subtitle_file', subtitle.id, backends=subtitle.backend):
for buf in self.do('get_subtitle_file', subtitle.id, backends=subtitle.backend):
if buf:
if dest == '-':
self.stdout.write(buf)
@ -194,5 +194,5 @@ class Suboob(ReplApplication):
pattern = None
self.start_format(pattern=pattern)
for backend, subtitle in self.do('iter_subtitles', language=language, pattern=pattern):
for subtitle in self.do('iter_subtitles', language=language, pattern=pattern):
self.cached_format(subtitle)