def P_settings(self, request):
     return {
         "result": True,
         'configsections': getConfigsSections()['sections'],
         'themes': THEMES,
         'theme': THEMES[0],
         'zapstream': getZapStream()['zapstream'],
         'showchannelpicon': getShowChPicon()['showchannelpicon']
     }
Exemplo n.º 2
0
	def P_channels(self, request):
		stype = "tv"
		idbouquet = "ALL"
		if "stype" in request.args.keys():
			stype = request.args["stype"][0]
		if "id" in request.args.keys():
			idbouquet = request.args["id"][0]
		channels = getChannels(idbouquet, stype)
		channels['transcoding'] = getTranscodingSupport()
		channels['type'] = stype
		channels['showchannelpicon'] = getShowChPicon()['showchannelpicon']
		return channels
Exemplo n.º 3
0
	def P_channels(self, request):
		stype = "tv"
		idbouquet = "ALL"
		if "stype" in request.args.keys():
			stype = request.args["stype"][0]
		if "id" in request.args.keys():
			idbouquet = request.args["id"][0]
		channels = getChannels(idbouquet, stype)
		channels['transcoding'] = getTranscodingSupport()
		channels['type'] = stype
		channels['showchannelpicon'] = getShowChPicon()['showchannelpicon']
		return channels
Exemplo n.º 4
0
 def P_settings(self, request):
     ret = {"result": True}
     ret["configsections"] = getConfigsSections()["sections"]
     if config.OpenWebif.webcache.theme.value:
         ret["themes"] = config.OpenWebif.webcache.theme.choices
         ret["theme"] = config.OpenWebif.webcache.theme.value
     else:
         ret["themes"] = []
         ret["theme"] = "original"
     ret["zapstream"] = getZapStream()["zapstream"]
     ret["showchannelpicon"] = getShowChPicon()["showchannelpicon"]
     return ret
Exemplo n.º 5
0
 def P_settings(self, request):
     ret = {"result": True}
     ret['configsections'] = getConfigsSections()['sections']
     if config.OpenWebif.webcache.theme.value:
         ret['themes'] = config.OpenWebif.webcache.theme.choices
         ret['theme'] = config.OpenWebif.webcache.theme.value
     else:
         ret['themes'] = []
         ret['theme'] = 'original'
     ret['zapstream'] = getZapStream()['zapstream']
     ret['showchannelpicon'] = getShowChPicon()['showchannelpicon']
     return ret
Exemplo n.º 6
0
 def P_settings(self, request):
     ret = {"result": True}
     ret['configsections'] = getConfigsSections()['sections']
     if config.OpenWebif.webcache.theme.value:
         if os.path.exists(getPublicPath('themes')):
             ret['themes'] = config.OpenWebif.webcache.theme.choices
         else:
             ret['themes'] = ['original', 'clear']
         ret['theme'] = config.OpenWebif.webcache.theme.value
     else:
         ret['themes'] = []
         ret['theme'] = 'original'
     ret['zapstream'] = getZapStream()['zapstream']
     ret['showchannelpicon'] = getShowChPicon()['showchannelpicon']
     ret['allowipkupload'] = config.OpenWebif.allow_upload_ipk.value
     return ret
Exemplo n.º 7
0
	def P_settings(self, request):
		ret = {
			"result": True
		}
		ret['configsections'] = getConfigsSections()['sections']
		if config.OpenWebif.webcache.theme.value:
			if os.path.exists(getPublicPath('themes')):
				ret['themes'] = config.OpenWebif.webcache.theme.choices
			else:
				ret['themes'] = ['original','clear']
			ret['theme'] = config.OpenWebif.webcache.theme.value
		else:
			ret['themes'] = []
			ret['theme'] = 'original'
		ret['zapstream'] = getZapStream()['zapstream']
		ret['showchannelpicon'] = getShowChPicon()['showchannelpicon']
		return ret