def stop(self): if self.iscam and self.actcam != "none" and self.finish: Softcam.stopcam(self.actcam) msg = _("Stopping %s") % self.actcam self.actcam = "none" self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO) self.closestopTimer.start(1000, False)
def stop(self): if self.iscam and self.actcam != "none": Softcam.stopcam(self.actcam) msg = _("Stopping %s") % self.actcam self.actcam = "none" self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO) self.activityTimer = eTimer() self.activityTimer.timeout.get().append(self.closestop) self.activityTimer.start(1000, False)
def stopping(self): self.activityTimer.stop() Softcam.stopcam(self.actcam) self.actcam = self.camstart service = self.session.nav.getCurrentlyPlayingServiceReference() if service: self.session.nav.stopService() self.Console.ePopen(self.camstartcmd) print "[NFR-SoftCam Manager] ", self.camstartcmd if self.mbox: self.mbox.close() if service: self.session.nav.playService(service) self.createinfo()
def startcam(reason, **kwargs): if config.plugins.AltSoftcam.actcam.value != "none": global EnigmaStart if reason == 0 and EnigmaStart == False: # Enigma start and not use reloadPlugins EnigmaStart = True sleep(2) try: cmd = Softcam.getcamcmd(config.plugins.AltSoftcam.actcam.value) Console().ePopen(cmd) print "[Alternative SoftCam Manager] ", cmd except: pass elif reason == 1 and EnigmaStart == True: # Enigma stop EnigmaStart = False try: Softcam.stopcam(config.plugins.AltSoftcam.actcam.value) except: pass