oops forget to change variable
This commit is contained in:
parent
1e0e96afbf
commit
9cb470ec4d
1 changed files with 3 additions and 3 deletions
|
|
@ -215,9 +215,9 @@ class Videoob(ReplApplication):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if line:
|
if line:
|
||||||
if line == 'on':
|
if line == 'on':
|
||||||
self.options.nsfw = True
|
self.nsfw = True
|
||||||
elif line == 'off':
|
elif line == 'off':
|
||||||
self.options.nsfw = False
|
self.nsfw = False
|
||||||
else:
|
else:
|
||||||
print 'Invalid argument "%s".' % line
|
print 'Invalid argument "%s".' % line
|
||||||
else:
|
else:
|
||||||
|
|
@ -240,7 +240,7 @@ class Videoob(ReplApplication):
|
||||||
|
|
||||||
self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Latest videos')
|
self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Latest videos')
|
||||||
self.videos = []
|
self.videos = []
|
||||||
for backend, video in self.do('iter_search_results', pattern=pattern, nsfw=self.options.nsfw,
|
for backend, video in self.do('iter_search_results', pattern=pattern, nsfw=self.nsfw,
|
||||||
max_results=self.options.count):
|
max_results=self.options.count):
|
||||||
self.videos.append(video)
|
self.videos.append(video)
|
||||||
self.format(video)
|
self.format(video)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue