def cleanUp(self): print("[EPGRefresh] Debug: Cleanup") config.plugins.epgrefresh.lastscan.value = int(time()) config.plugins.epgrefresh.lastscan.save() self.doStopRunningRefresh = False try: from plugin import AdjustExtensionsmenu, housekeepingExtensionsmenu, extStopDescriptor, extPendingServDescriptor AdjustExtensionsmenu(False, extPendingServDescriptor) AdjustExtensionsmenu(False, extStopDescriptor) housekeepingExtensionsmenu(config.plugins.epgrefresh.show_run_in_extensionsmenu, force=True) except: print("[EPGRefresh] Error while removing 'Stop Running EPG-Refresh' to Extensionmenu:") print_exc(file=stdout) # Start Todo-Chain self._nextTodo()
def cleanUp(self): print("[EPGRefresh] Debug: Cleanup") config.plugins.epgrefresh.lastscan.value = int(time()) config.plugins.epgrefresh.lastscan.save() self.doStopRunningRefresh = False try: from plugin import AdjustExtensionsmenu, housekeepingExtensionsmenu, extStopDescriptor, extPendingServDescriptor AdjustExtensionsmenu(False, extPendingServDescriptor) AdjustExtensionsmenu(False, extStopDescriptor) housekeepingExtensionsmenu(config.plugins.epgrefresh.show_run_in_extensionsmenu, force=True) except: print("[EPGRefresh] Error while removing 'Stop Running EPG-Refresh' to Extensionmenu:") print_exc(file=stdout) # Start Todo-Chain self._nextTodo()