if -b option is provided, set nsfw to true

This commit is contained in:
Christophe Benz 2010-07-10 02:29:37 +02:00
commit 753e008a6f

View file

@ -34,6 +34,8 @@ class Videoob(ConsoleApplication):
group.add_option('--nsfw', action='store_true', help='enable non-suitable for work videos')
def main(self, argv):
if self.options.backends:
self.options.nsfw = True
return self.process_command(*argv[1:])
@ConsoleApplication.command('Get video information (accept ID or URL)')