Пример #1
0
	def stop(self):
		if self.iscam and self.actcam != "none" and self.finish:
			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' and self.finish:
         stopcam(self.actcam)
         msg = _('Camd zatrzymany : %s') % self.actcam
         self.actcam = 'none'
         self.mbox = self.session.open(MessageBox, msg, MessageBox.TYPE_INFO, timeout=5)
         self.closestopTimer.start(1000, False)
Пример #3
0
	def stop(self):
		if self.iscam and self.actcam != "none" and self.finish:
			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" and self.finish:
			stopcam(self.actcam)
			self.session.open(MessageBox,
				_("Stopping %s") % self.actcam,
				MessageBox.TYPE_INFO, timeout = 3)
			self.actcam = "none"
			self.closestopTimer.start(1000, False)
 def stop(self):
     if self.iscam and self.actcam != "none" and self.finish:
         stopcam(self.actcam)
         self.session.open(MessageBox,
                           _("Stopping %s") % self.actcam,
                           MessageBox.TYPE_INFO,
                           timeout=3)
         self.actcam = "none"
         self.closestopTimer.start(1000, False)
Пример #6
0
def startcam(reason, **kwargs):
    if config.plugins.AltSoftcam.actcam.value != "none":
        global EnigmaStart
        if reason == 0 and not EnigmaStart:  # Enigma start and not use reloadPlugins
            from Startup import startcamonstart
            EnigmaStart = True
            startcamonstart.start()
        elif reason == 1:  # Enigma stop
            from Softcam import stopcam
            stopcam(config.plugins.AltSoftcam.actcam.value)
def startcam(reason, **kwargs):
	if config.plugins.AltSoftcam.actcam.value != "none":
		global EnigmaStart
		if reason == 0 and not EnigmaStart:  # Enigma start and not use reloadPlugins
			from Startup import startcamonstart
			EnigmaStart = True
			startcamonstart.start()
		elif reason == 1:  # Enigma stop
			from Softcam import stopcam
			stopcam(config.plugins.AltSoftcam.actcam.value)
Пример #8
0
def startcam(reason, **kwargs):
    if config.plugins.PECam.actcam.value != "none":
        global EnigmaStart
        if reason == 0 and not EnigmaStart:
            from Startup import startcamonstart
            EnigmaStart = True
            startcamonstart.start()
        elif reason == 1:
            from Softcam import stopcam
            stopcam(config.plugins.PECam.actcam.value)
Пример #9
0
def startcam(reason, **kwargs):
	if config.plugins.AltSoftcam.actcam.value != "none":
		global EnigmaStart
		if reason == 0 and not EnigmaStart: # Enigma start and not use reloadPlugins
			EnigmaStart = True
			sleep(2)
			cmd = getcamcmd(config.plugins.AltSoftcam.actcam.value)
			Console().ePopen(cmd)
			print "[Alternative SoftCam Manager] ", cmd
		elif reason == 1: # Enigma stop
			stopcam(config.plugins.AltSoftcam.actcam.value)
 def stopping(self):
     self.stoppingTimer.stop()
     stopcam(self.actcam)
     self.actcam = self.camstart
     service = self.session.nav.getCurrentlyPlayingServiceReference()
     if service:
         self.session.nav.stopService()
     self.Console.ePopen(self.camstartcmd)
     print "[Alternative SoftCam Manager] ", self.camstartcmd
     if service:
         self.session.nav.playService(service)
     self.createinfo()
	def stopping(self):
		self.stoppingTimer.stop()
		stopcam(self.actcam)
		self.actcam = self.camstart
		service = self.session.nav.getCurrentlyPlayingServiceReference()
		if service:
			self.session.nav.stopService()
		self.Console.ePopen(self.camstartcmd)
		print "[Alternative SoftCam Manager] ", self.camstartcmd
		if service:
			self.session.nav.playService(service)
		self.createinfo()
Пример #12
0
 def stopping(self):
     self.stoppingTimer.stop()
     stopcam(self.actcam)
     self.actcam = self.camstart
     service = self.session.nav.getCurrentlyPlayingServiceReference()
     if service:
         self.session.nav.stopService()
     self.Console.ePopen(self.camstartcmd)
     if self.mbox:
         self.mbox.close()
     if service:
         self.session.nav.playService(service)
     self.createinfo()
	def restart(self):
		cam = config.plugins.AltSoftcam.actcam.value
		if cam != "none":
			self.session.open(MessageBox, _("Restarting %s") % cam, 
				type = MessageBox.TYPE_INFO, timeout = 4)
			stopcam(cam)
			service = self.session.nav.getCurrentlyPlayingServiceReference()
			if service:
				self.session.nav.stopService()
			cmd = getcamcmd(cam)
			print "[Alternative SoftCam Manager]", cmd
			Console().ePopen(cmd)
			if service:
				self.session.nav.playService(service)
Пример #14
0
 def restart(self):
     cam = config.plugins.AltSoftcam.actcam.value
     if cam != "none":
         self.session.open(MessageBox,
                           _("Restarting %s") % cam,
                           type=MessageBox.TYPE_INFO,
                           timeout=4)
         stopcam(cam)
         service = self.session.nav.getCurrentlyPlayingServiceReference()
         if service:
             self.session.nav.stopService()
         cmd = getcamcmd(cam)
         print "[Alternative SoftCam Manager]", cmd
         Console().ePopen(cmd)
         if service:
             self.session.nav.playService(service)