75 os.remove(ATFN) 76 checkfile = '/tmp/.autotimeredit' 77 f = os.open(checkfile, os.O_WRONLY | os.O_CREAT)
88 tarFiles += "%s " % arg
89 lines = os.popen("tar cvf %s %s" % (ATFN, tarFiles)).readlines()
90 os.remove(checkfile)
112 check_tar = False
113 lines = os.popen('tar -tf %s' % ATFN).readlines()
114 for line in lines:
119 if check_tar:
120 lines = os.popen('tar xvf %s -C /' % ATFN).readlines()
121
127 autotimer.readXml() 128 except Exception: 129 # TODO: proper error handling 130 pass 131
186 if password is None: 187 password = "" 188
281 variant = "oscam" 282 for file in ["/tmp/.ncam/ncam.version", "/tmp/.oscam/oscam.version"]: 283 if fileExists(file): # nosec
281 variant = "oscam" 282 for file in ["/tmp/.ncam/ncam.version", "/tmp/.oscam/oscam.version"]: 283 if fileExists(file): # nosec
174 debug("[[[ convertRating(%s) age=%s country=%s ]]]" % (val, age, country), "EPGEvent")
175 except Exception as err:
176 pass
177 #error(err, "EPGEvent")
92 try:
93 for line in open("/tmp/opkg.tmp", 'r'):
94 if line.startswith('Package:'):
216 try:
217 data = open("/tmp/opkg.tmp", 'r').read()
218 self.request.write(six.ensure_binary(data))
46 return serviceref.getPath() 47 except: 48 pass 49 return 0
241 })
242 except Exception:
243 pass
244 return {
330 try:
331 result = eval(require)
332 result = bool(result.value and str(result.value).lower() not in ("0", "disable", "false", "no", "off"))
341 try: 342 if not bool(eval(conditional)): 343 return False
71 72 self.filepath = "/tmp/screenshot." + fileformat 73 self.container = eConsoleAppContainer()
108 try:
109 speed = os.popen('iwlist ' + iface + ' bitrate | grep "Bit Rate"').read().split(':')[1].split(' ')[0]
110 except: # nosec # noqa: E722
82 dest = rsa_pub1024(src[:128], mod) 83 hash = hashlib.sha1(dest[1:107]) 84 if len(src) == 202:
111 args = args.replace('__', urlparam)
112 except Exception:
113 pass
114
217 args = args.replace('__', urlparam)
218 except Exception:
219 pass
220 # Add position parameter to m3u link
95 filename = timer.Filename 96 except Exception: 97 pass 98
100 nextactivation = timer.next_activation 101 except Exception: 102 pass 103
2366 return {'configs': resultcfgs}
2367 except Exception:
2368 # TODO show exception
2369 pass
2370 return {}
2380 comp_config.OpenWebif.webcache.moviedb.save() 2381 except Exception: 2382 pass 2383 elif b"showpicons" in list(request.args.keys()):
2410 comp_config.OpenWebif.webcache.smallremote.save() 2411 except Exception: 2412 pass 2413 elif b"theme" in list(request.args.keys()):
2416 comp_config.OpenWebif.webcache.theme.save() 2417 except Exception: 2418 pass 2419 elif b"mepgmode" in list(request.args.keys()):