def __init__(self): #start the extra threads libraryMonitor = LibraryMonitor() libraryMonitor.start() while not self.KodiMonitor.abortRequested(): if self.KodiMonitor.waitForAbort(1): # Abort was requested while waiting. We should exit xbmc.log('Arctic Zephyr Script --> shutdown requested !') else: #stop the extra threads libraryMonitor.stop()
def __init__(self): KodiMonitor = Kodi_Monitor() #start the extra threads libraryMonitor = LibraryMonitor() libraryMonitor.start() while not (KodiMonitor.abortRequested() or xbmc.abortRequested): xbmc.sleep(150) else: # Abort was requested while waiting. We should exit xbmc.log('Eunique Helper Script --> shutdown requested !') #stop the extra threads libraryMonitor.stop()
def __init__(self): KodiMonitor = Kodi_Monitor() #start the extra threads libraryMonitor = LibraryMonitor() libraryMonitor.start() while not (KodiMonitor.abortRequested() or xbmc.abortRequested): xbmc.sleep(150) else: # Abort was requested while waiting. We should exit xbmc.log('Arctic Zephyr Script --> shutdown requested !') #stop the extra threads libraryMonitor.stop()