def GBIpboxClientAutostart(reason, session=None, **kwargs): global timerinstance timerinstance = GBIpboxTimer(session) InfoBarTimeshift.ts_disabled = True mount = GBIpboxMount(session) mount.automount()
def keySave(self): for x in self["config"].list: x[1].save() config.ipboxclient.firstconf.value = True config.ipboxclient.firstconf.save() if self.timerinstance: self.timerinstance.refreshScheduler() mount = GBIpboxMount(self.session) mount.remount() self.messagebox = self.session.open(MessageBox, _('Please wait while download is in progress.\nNOTE: If you have parental control enabled on remote box, the local settings will be overwritten.'), MessageBox.TYPE_INFO, enable_input = False) self.timer = eTimer() self.timer.callback.append(self.download) self.timer.start(100)
def scanCallback(self, result): if (result): config.ipboxclient.host.value = result[1] config.ipboxclient.host.save() config.ipboxclient.port.value = 80 config.ipboxclient.port.save() config.ipboxclient.streamport.value = 8001 config.ipboxclient.streamport.save() config.ipboxclient.auth.value = False config.ipboxclient.auth.save() config.ipboxclient.firstconf.value = True config.ipboxclient.firstconf.save() mount = GBIpboxMount(self.session) mount.remount() self.populateMenu()
def keySave(self): for x in self["config"].list: x[1].save() config.ipboxclient.firstconf.value = True config.ipboxclient.firstconf.save() if self.timerinstance: self.timerinstance.refreshScheduler() mount = GBIpboxMount(self.session) mount.remount() self.messagebox = self.session.open( MessageBox, _('Please wait while download is in progress.\nNOTE: If you have parental control enabled on remote box, the local settings will be overwritten.' ), MessageBox.TYPE_INFO, enable_input=False) self.timer = eTimer() self.timer.callback.append(self.download) self.timer.start(100)
def selectionMade(self, result): selecteddevice = None if result != 'cancel': for device in self.scanresults: if device[1] == result: selecteddevice = device if selecteddevice: config.ipboxclient.host.value = selecteddevice[1] config.ipboxclient.host.save() config.ipboxclient.port.value = 80 config.ipboxclient.port.save() config.ipboxclient.streamport.value = 8001 config.ipboxclient.streamport.save() config.ipboxclient.auth.value = False config.ipboxclient.auth.save() config.ipboxclient.firstconf.value = True config.ipboxclient.firstconf.save() mount = GBIpboxMount(self.session) mount.remount() self.currStep = self.getStepWithID('download') else: self.currStep = self.getStepWithID('welcome')