def camstart(reason, **kwargs): if not config.plugins.infopanel_frozencheck.list.value == '0': CamCheck() try: f = open("/proc/stb/video/alpha", "w") f.write(str(config.osd.alpha.value)) f.close() except: print "[Info-Panel] failed to write /proc/stb/video/alpha" try: if config.softcam.camstartMode.value == "0": global timerInstance if timerInstance is None: timerInstance = CamStart(None) timerInstance.startTimer() except: print "[Info-Panel] failed to run CamStart"
def doClose(self): if not config.plugins.infopanel_frozencheck.list.value == '0': CamCheck() self.close()