def checkcam (self, cam): cam = cam.lower() if getcamscript(cam): return "Script" elif "oscam" in cam: return "Oscam" elif "mgcamd" in cam: return "Mgcamd" elif "wicard" in cam: return "Wicard" elif "camd3" in cam: return "Camd3" elif "mcas" in cam: return "Mcas" elif "cccam" in cam: return "CCcam" elif "gbox" in cam: return "Gbox" elif "mpcs" in cam: return "Mpcs" elif "mbox" in cam: return "Mbox" elif "newcs" in cam: return "Newcs" elif "vizcam" in cam: return "Vizcam" elif "rucam" in cam: return "Rucam" else: return cam[:6]
def checkcam(self, cam): cam = cam.lower() if getcamscript(cam): return "Script" elif "oscam" in cam: return "Oscam" elif "mgcamd" in cam: return "Mgcamd" elif "wicard" in cam: return "Wicard" elif "camd3" in cam: return "Camd3" elif "mcas" in cam: return "Mcas" elif "cccam" in cam: return "CCcam" elif "gbox" in cam: return "Gbox" elif "mpcs" in cam: return "Mpcs" elif "mbox" in cam: return "Mbox" elif "newcs" in cam: return "Newcs" elif "vizcam" in cam: return "Vizcam" elif "rucam" in cam: return "Rucam" else: return cam[:6]
def checkcam(self, cam): cam = cam.title() if getcamscript(cam): return "Script" if cam[:5] in ("Oscam", "Camd3", "Newcs", "Rucam"): return cam[:5] elif cam[:4] in ("Mcas", "Gbox", "Mpcs", "Mbox"): return cam[:4] cam = cam[:6] if "Cccam" in cam: return "CCcam" else: return cam
def camliststart(self): if path.exists(config.plugins.AltSoftcam.camdir.value): self.softcamlist = listdir(config.plugins.AltSoftcam.camdir.value) if self.softcamlist: self.softcamlist.sort() self.iscam = True self.Console.ePopen("chmod 755 %s/*" % config.plugins.AltSoftcam.camdir.value) if self.actcam != "none" and getcamscript(self.actcam): self.createcamlist() else: self.Console.ePopen("pidof %s" % self.actcam, self.camactive) else: self.finish = True self["list"].setList([]) else: checkconfigdir() self.camliststart()
def camliststart(self): if path.exists(config.plugins.Camd.camdir.value): self.softcamlist = listdir(config.plugins.Camd.camdir.value) if self.softcamlist: self.softcamlist.sort() self.iscam = True self.Console.ePopen('chmod 755 %s/*' % config.plugins.Camd.camdir.value) if self.actcam != 'none' and getcamscript(self.actcam): self.createcamlist() else: self.Console.ePopen('pidof %s' % self.actcam, self.camactive) else: self.finish = True self['list'].setList([]) else: checkconfigdir() self.camliststart()
def camliststart(self): if os.path.exists(config.plugins.AltSoftcam.camdir.value): self.softcamlist = os.listdir(config.plugins.AltSoftcam.camdir.value) if self.softcamlist: self.softcamlist.sort() self.iscam = True for x in self.softcamlist: os.chmod(os.path.join(config.plugins.AltSoftcam.camdir.value, x) , 0755) if self.actcam != "none" and getcamscript(self.actcam): self.createcamlist() else: self.Console.ePopen("pidof %s" % self.actcam, self.camactive) else: self.finish = True self["list"].setList([]) else: checkconfigdir() self.camliststart()
def camliststart(self): if path.exists(config.plugins.PECam.camdir.value): self.softcamlist = listdir(config.plugins.PECam.camdir.value) if self.softcamlist: self.softcamlist.sort() self.iscam = True self.Console.ePopen("chmod 755 %s/*" % config.plugins.PECam.camdir.value) if self.actcam != "none" and getcamscript(self.actcam): self.createcamlist() else: self.Console.ePopen("pidof %s" % self.actcam, self.camactive) else: self.finish = True self["list"].setList([]) else: checkconfigdir() self.camliststart()