--- a/SundtekControlCenter.py+++ b/SundtekControlCenter.py@@ -99,7 +99,7 @@ ## version string ######################################################### -sundtekcontrolcenter_version = "20150723-3"+sundtekcontrolcenter_version = "20150912-1" testOK = None ###########################################################################@@ -372,6 +372,7 @@ ### search for sundtekcontrolcenter updates try: version = urllib.urlopen('http://sundtek.de/media/latest.phtml?sccv=1').read()+ version = version.replace('sundtekcontrolcenter-', '') except: version = "n/a" if version == sundtekcontrolcenter_version:@@ -380,8 +381,8 @@ self["updateavail"].setText("n/a") else: try:- current_version = int(sundtekcontrolcenter_version[6:14])- available_version = int(version[6:14])+ current_version = int(sundtekcontrolcenter_version[:8])+ available_version = int(version[:8]) if available_version > current_version: self["updateavail"].setText(_("scc update available")) except:@@ -499,9 +500,9 @@ else: return os.system(cmd)- self.session.open(MessageBox, _("Trying to connect to %s (push ok to continue)" % config.plugins.SundtekControlCenter.networkIp.value), MessageBox.TYPE_INFO, 7)+ self.session.open(MessageBox, _("Trying to connect to %s (push ok to continue)") % config.plugins.SundtekControlCenter.networkIp.value, MessageBox.TYPE_INFO, 7) else:- self.session.open(MessageBox, _("%s is already connected" % config.plugins.SundtekControlCenter.networkIp.value), MessageBox.TYPE_INFO, 7)+ self.session.open(MessageBox, _("%s is already connected") % config.plugins.SundtekControlCenter.networkIp.value, MessageBox.TYPE_INFO, 7) return if cur[1] == config.plugins.SundtekControlCenter.scanNetwork:@@ -685,7 +686,7 @@ list.extend(sublist) for i in range(0,vtuner_nifs):- list.append(getConfigListEntry(_("Enable Tuner %d" % (int(i+1))), config.plugins.SundtekControlCenter.__dict__["tuner_enabled_%d" % i]))+ list.append(getConfigListEntry(_("Enable Tuner %d") % int(i+1), config.plugins.SundtekControlCenter.__dict__["tuner_enabled_%d" % i])) if config.plugins.SundtekControlCenter.__dict__["tuner_enabled_%d" % i].value: list.append(getConfigListEntry(_("* Device"), config.plugins.SundtekControlCenter.__dict__["devices_%d" % i])) list.append(getConfigListEntry(_("* DVB Mode"), config.plugins.SundtekControlCenter.__dict__["dvbtransmission1_%d" % i])) @@ -748,6 +749,7 @@ if not self.network: return try: self.version = urllib.urlopen('http://sundtek.de/media/latest.phtml?sccv=1').read()+ self.version = self.version.replace('sundtekcontrolcenter-', '') except: self.version = "n/a" if self.version == sundtekcontrolcenter_version:@@ -757,8 +759,8 @@ else: update = False try:- current_version = int(sundtekcontrolcenter_version[6:14])- available_version = int(self.version[6:14])+ current_version = int(sundtekcontrolcenter_version[:8])+ available_version = int(self.version[:8]) if available_version > current_version: update = True else:
openpli develop vusolo4kvusolo4k login: rootroot@vusolo4k:~# ls -l /dev/vtuner*crw------- 1 root root 10, 57 Jan 1 1970 /dev/vtuner0crw------- 1 root root 10, 56 Jan 1 1970 /dev/vtuner1crw------- 1 root root 10, 55 Jan 1 1970 /dev/vtuner2crw------- 1 root root 10, 54 Jan 1 1970 /dev/vtuner3root@vusolo4k:~#
vtuner_dir = "/dev/misc/"if not os.path.isdir(vtuner_dir): vtuner_dir = "/dev/"for dirname, dirnames, filenames in os.walk(vtuner_dir): for filename in filenames: if (len(filename) >= 7) and (filename[0:6] == "vtuner"): vtuner_interfaces.append(filename)