port every console applications to ReplApplication

This commit is contained in:
Romain Bignon 2010-09-24 12:58:27 -04:00
commit 37a53b783a
17 changed files with 460 additions and 369 deletions

View file

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz, Romain Bignon
#
# This program is free software; you can redistribute it and/or modify
@ -55,7 +54,7 @@ class Videoob(ReplApplication):
for backend, video in self.do('get_video', _id, backends=backend_names):
self.format(video)
self.flush()
def do_nsfw(self, line):
"""
nsfw [on | off]