Remove backend for do() calls
This commit is contained in:
parent
40a8bc0ce1
commit
628c63f899
33 changed files with 112 additions and 113 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue