def start_update_kodi_library(self):
     if not self.scan_in_progress and not self.clean_in_progress:
         LOG.debug('Start Kodi library scan')
         self.scan_in_progress = True  # Set as in progress (avoid wait "started" callback it comes late)
         self.scan_awaiting = False
         common.scan_library(get_library_path())
     else:
         self.scan_awaiting = True
 def start_update_kodi_library(self):
     if not self.scan_in_progress and not self.clean_in_progress:
         common.debug('Start Kodi library scan')
         self.scan_in_progress = True  # Set as in progress (avoid wait "started" callback it comes late)
         self.scan_awaiting = False
         # Update only the library elements in the add-on export folder
         # for faster processing (on Kodi 18.x) with a large library
         common.scan_library(makeLegalFilename(xbmc.translatePath(get_library_path())))
     else:
         self.scan_awaiting = True
 def update_kodi_library(self, data=None):  # pylint: disable=unused-argument
     # Update only the elements in the addon export folder for faster processing with a large library (on Kodi 18.x)
     # If a scan is already in progress, the scan is delayed until onScanFinished event
     if not self.scan_in_progress:
         common.debug(
             'Kodi library update requested from library auto-update')
         self.scan_awaiting = False
         common.scan_library(
             makeLegalFilename(
                 xbmc.translatePath(kodi_library.library_path())))
     else:
         self.scan_awaiting = True
 def update_kodi_library(self, data=None):
     # Update only the elements in the addon export folder
     # for faster processing with a large library.
     # If a scan is already in progress, the scan is delayed until onScanFinished event
     common.debug('Library update requested for library updater service')
     if not self.scan_in_progress:
         self.scan_awaiting = False
         common.scan_library(
             xbmc.makeLegalFilename(
                 xbmc.translatePath(library.library_path())))
     else:
         self.scan_awaiting = True