From 9cb470ec4dda8d618637791b6f55e621d2cb2eca Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Tue, 28 Sep 2010 01:03:11 +0200 Subject: [PATCH] oops forget to change variable --- weboob/applications/videoob/videoob.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index 68b66101..78ff0104 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -215,9 +215,9 @@ class Videoob(ReplApplication): line = line.strip() if line: if line == 'on': - self.options.nsfw = True + self.nsfw = True elif line == 'off': - self.options.nsfw = False + self.nsfw = False else: print 'Invalid argument "%s".' % line else: @@ -240,7 +240,7 @@ class Videoob(ReplApplication): self.set_formatter_header(u'Search pattern: %s' % pattern if pattern else u'Latest 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): self.videos.append(video) self.format(video)