def __init__(self, session, scanList): try: unlink(resolveFilename(SCOPE_CONFIG) + "/lamedb") except OSError: pass db = eDVBDB.getInstance() db.reloadServicelist() ServiceScan.__init__(self, session, scanList) self.timer = eTimer() self.timer.callback.append(self.ok) self.timer.start(1000)
def __init__(self, session, scanList): try: unlink(resolveFilename(SCOPE_CONFIG) + "/lamedb"); except OSError: pass db = eDVBDB.getInstance() db.reloadServicelist() ServiceScan.__init__(self, session, scanList) self.timer = eTimer() self.timer.callback.append(self.ok) self.timer.start(1000)