Beispiel #1
0
 def P_streamm3u(self, request):
     self.isCustom = True
     if getZapStream()['zapstream']:
         if "ref" in request.args:
             zapService(self.session, request.args["ref"][0],
                        request.args["name"][0])
     return getStream(self.session, request, "stream.m3u")
	def P_streamm3u(self,request):
		self.isCustom = True

		if getZapStream()['zapstream']:
			if "ref" in request.args:
				zapService(self.session, request.args["ref"][0], request.args["name"][0])

		return getStream(self.session,request,"stream.m3u")
	def P_zap(self, request):
		res = self.testMandatoryArguments(request, ["sRef"])
		if res:
			return res
			
		if "title" in request.args.keys():
			return zapService(self.session, request.args["sRef"][0], request.args["title"][0])
		
		return zapService(self.session, request.args["sRef"][0])
Beispiel #4
0
	def P_zap(self, request):
		res = self.testMandatoryArguments(request, ["sRef"])
		if res:
			return res

		if "title" in request.args.keys():
			return zapService(self.session, request.args["sRef"][0], request.args["title"][0])

		return zapService(self.session, request.args["sRef"][0])