From 753e008a6f646fec38786bb9e2aead0176eec2d1 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Sat, 10 Jul 2010 02:29:37 +0200 Subject: [PATCH] if -b option is provided, set nsfw to true --- weboob/applications/videoob/videoob.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weboob/applications/videoob/videoob.py b/weboob/applications/videoob/videoob.py index 5ac04991..5af1d6ea 100644 --- a/weboob/applications/videoob/videoob.py +++ b/weboob/applications/videoob/videoob.py @@ -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)')