change vocabulary
s/module/backend s/backend/configured_backend s/frontend/application
This commit is contained in:
parent
29d28ba175
commit
5c2ab81e16
27 changed files with 347 additions and 347 deletions
|
|
@ -41,7 +41,7 @@ class Videoob(ConsoleApplication):
|
|||
def command_info(self, _id):
|
||||
_id, backend_name = self.parse_id(_id)
|
||||
names = (backend_name,) if backend_name is not None else None
|
||||
self.load_modules(ICapVideo, names=names)
|
||||
self.load_backends(ICapVideo, names=names)
|
||||
for backend, video in self.weboob.do('get_video', _id):
|
||||
if video is None:
|
||||
continue
|
||||
|
|
@ -49,7 +49,7 @@ class Videoob(ConsoleApplication):
|
|||
|
||||
@ConsoleApplication.command('Search for videos')
|
||||
def command_search(self, pattern=None):
|
||||
self.load_modules(ICapVideo)
|
||||
self.load_backends(ICapVideo)
|
||||
self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Last videos')
|
||||
for backend, video in self.do('iter_search_results', pattern=pattern, nsfw=self.options.nsfw):
|
||||
self.format(video, backend.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue