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