s/ICapVideoProvider/ICapVideo
This commit is contained in:
parent
0780c5ac17
commit
076a4f44b9
7 changed files with 17 additions and 17 deletions
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
"""
|
||||
|
||||
from weboob.capabilities.video import ICapVideoProvider
|
||||
from weboob.capabilities.video import ICapVideo
|
||||
from weboob.tools.application import QtApplication
|
||||
|
||||
from .main_window import MainWindow
|
||||
|
|
@ -34,7 +34,7 @@ class QVideoob(QtApplication):
|
|||
}
|
||||
}
|
||||
def main(self, argv):
|
||||
self.load_modules(ICapVideoProvider)
|
||||
self.load_modules(ICapVideo)
|
||||
self.load_config()
|
||||
|
||||
self.main_window = MainWindow(self.config, self.weboob)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
"""
|
||||
|
||||
from weboob.capabilities.video import ICapVideoProvider
|
||||
from weboob.capabilities.video import ICapVideo
|
||||
from weboob.tools.application import ConsoleApplication
|
||||
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ class Videoob(ConsoleApplication):
|
|||
group.add_option('--nsfw', action='store_true', help='enable non-suitable for work videos')
|
||||
|
||||
def main(self, argv):
|
||||
self.load_modules(ICapVideoProvider)
|
||||
self.load_modules(ICapVideo)
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
@ConsoleApplication.command('Get video information (accept ID or URL)')
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from webob.dec import wsgify
|
|||
from webob import exc
|
||||
from wsgiref.simple_server import make_server
|
||||
|
||||
from weboob.capabilities.video import ICapVideoProvider
|
||||
from weboob.capabilities.video import ICapVideo
|
||||
from weboob.tools.application import BaseApplication
|
||||
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ class VideoobWeb(BaseApplication):
|
|||
|
||||
def main(self, argv):
|
||||
self.load_config()
|
||||
self.weboob.load_modules(ICapVideoProvider)
|
||||
self.weboob.load_modules(ICapVideo)
|
||||
print 'Web server created. Listening on http://%s:%s' % (
|
||||
self.config.get('host'), int(self.config.get('port')))
|
||||
srv = make_server(self.config.get('host'), int(self.config.get('port')), self.make_app)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue