Exemplo n.º 1
0
    def webui_command(self, options):
        """
        Handles the 'webui' CLI command.

        :param options: argparse options
        """
        if self.is_daemon:
            log.error('Webui or daemon is already running.')
            return
        # TODO: make webui an enablable plugin in regular daemon mode
        try:
            pkg_resources.require('flexget[webui]')
        except pkg_resources.DistributionNotFound as e:
            log.error('Dependency not met. %s' % e)
            log.error(
                'Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.'
            )
            self.shutdown()
            return
        if options.daemonize:
            self.daemonize()
        self.is_daemon = True
        from flexget.ui import webui
        self.task_queue.start()
        self.ipc_server.start()
        webui.start(self)
        self.task_queue.wait()
Exemplo n.º 2
0
    def webui_command(self, options):
        """
        Handles the 'webui' CLI command.

        :param options: argparse options
        """
        if self.is_daemon:
            log.error('Webui or daemon is already running.')
            return
        # TODO: make webui an enablable plugin in regular daemon mode
        try:
            pkg_resources.require('flexget[webui]')
        except pkg_resources.DistributionNotFound as e:
            log.error('Dependency not met. %s' % e)
            log.error('Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.')
            self.shutdown()
            return
        if options.daemonize:
            self.daemonize()
        self.is_daemon = True
        from flexget.ui import webui
        self.task_queue.start()
        self.ipc_server.start()
        webui.start(self)
        self.task_queue.wait()
Exemplo n.º 3
0
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error('Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.')
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         webui.start(self)
Exemplo n.º 4
0
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error(
             'Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.'
         )
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         webui.start(self)
Exemplo n.º 5
0
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     # TODO: make webui an enablable plugin in regular daemon mode
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error('Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.')
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         self.ipc_server.start()
         self.task_queue.start()
         webui.start(self)
         self.task_queue.wait()
Exemplo n.º 6
0
 def webui_command(self, options):
     """
     :param options: argparse options
     """
     # TODO: make webui an enablable plugin in regular daemon mode
     try:
         pkg_resources.require('flexget[webui]')
     except pkg_resources.DistributionNotFound as e:
         log.error('Dependency not met. %s' % e)
         log.error(
             'Webui dependencies not installed. You can use `pip install flexget[webui]` to install them.'
         )
         self.shutdown()
         return
     if options.daemonize:
         self.daemonize()
     from flexget.ui import webui
     with self.acquire_lock():
         self.ipc_server.start()
         self.task_queue.start()
         webui.start(self)
         self.task_queue.wait()