def start_services(self):
        """Start the background services"""
        from resources.lib.services.library_updater import LibraryUpdateService

        self.nf_server_instance.server_activate()
        self.nf_server_thread.start()
        LOG.info('[NF_SERVER] Thread started')

        self.library_updater = LibraryUpdateService()
        # We reset the value in case of any eventuality (add-on disabled, update, etc)
        WndHomeProps[WndHomeProps.CURRENT_DIRECTORY] = None
        # Mark the service as active
        self._set_service_status('running')
        if not G.ADDON.getSettingBool('disable_startup_notification'):
            from resources.lib.kodi.ui import show_notification
            show_notification(get_local_string(30110))
Esempio n. 2
0
 def start_services(self):
     """
     Start the background services
     """
     from resources.lib.services.playback.action_controller import ActionController
     from resources.lib.services.library_updater import LibraryUpdateService
     from resources.lib.services.settings_monitor import SettingsMonitor
     for server in self.SERVERS:
         server['instance'].server_activate()
         server['instance'].timeout = 1
         server['thread'].start()
         info('[{}] Thread started'.format(server['name']))
     self.controller = ActionController()
     self.library_updater = LibraryUpdateService()
     self.settings_monitor = SettingsMonitor()
     # Mark the service as active
     self._set_service_status('running')
     if not g.ADDON.getSettingBool('disable_startup_notification'):
         from resources.lib.kodi.ui import show_notification
         show_notification(get_local_string(30110))
Esempio n. 3
0
 def start_services(self):
     """
     Start the background services
     """
     from resources.lib.services.playback.action_controller import ActionController
     from resources.lib.services.library_updater import LibraryUpdateService
     for server in self.SERVERS:
         server['instance'].server_activate()
         server['instance'].timeout = 1
         server['thread'].start()
         LOG.info('[{}] Thread started'.format(server['name']))
     self.controller = ActionController()
     self.library_updater = LibraryUpdateService()
     # We reset the value in case of any eventuality (add-on disabled, update, etc)
     WndHomeProps[WndHomeProps.CURRENT_DIRECTORY] = None
     # Mark the service as active
     self._set_service_status('running')
     if not G.ADDON.getSettingBool('disable_startup_notification'):
         from resources.lib.kodi.ui import show_notification
         show_notification(get_local_string(30110))