Beispiel #1
0
	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		movies['transcoding'] = getTranscodingSupport()
		return movies
	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		movies['transcoding'] = getTranscodingSupport()
		return movies
Beispiel #3
0
    def P_movies(self, request):
        if "dirname" in request.args.keys():
            movies = getMovieList(request.args["dirname"][0])
        else:
            movies = getMovieList()
        movies['transcoding'] = getTranscodingSupport()

        sorttype = config.OpenWebif.webcache.moviesort.value
        unsort = movies['movies']

        if sorttype == 'name':
            movies['movies'] = sorted(unsort, key=lambda k: k['eventname'])
        elif sorttype == 'named':
            movies['movies'] = sorted(unsort,
                                      key=lambda k: k['eventname'],
                                      reverse=True)
        elif sorttype == 'date':
            movies['movies'] = sorted(unsort, key=lambda k: k['recordingtime'])
        elif sorttype == 'dated':
            movies['movies'] = sorted(unsort,
                                      key=lambda k: k['recordingtime'],
                                      reverse=True)

        movies['sort'] = sorttype
        return movies
Beispiel #4
0
	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		info = getInfo()
		model = info["model"]
		movies['transcoding'] = False
		if model in ("solo2", "duo2", "Sezam Marvel", "Xpeed LX3", "gbquad", "gbquadplus") and path.exists(eEnv.resolve('${libdir}/enigma2/python/Plugins/SystemPlugins/TransCodingSetup/plugin.pyo')):
			movies['transcoding'] = True
		return movies
	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		info = getInfo()
		model = info["model"]
		movies['transcoding'] = False
		if model in ("solo2", "duo2"):
			movies['transcoding'] = True
		return movies
	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		info = getInfo()
		model = info["model"]
		chipset = info["chipset"]
		movies['transcoding'] = False
		if model in ("solo2", "duo2", "solose", "vusolo2", "vuduo2", "vusolose", "xpeedlx3", "gbquad", "gbquadplus") or chipset in ("7356"): # 7356 model default transcoding
			movies['transcoding'] = True
		return movies
Beispiel #7
0
 def P_movies(self, request):
     if "dirname" in request.args.keys():
         movies = getMovieList(request.args["dirname"][0])
     else:
         movies = getMovieList()
     info = getInfo()
     model = info["model"]
     movies['transcoding'] = False
     if model in ("solo2", "duo2", "solose", "vusolo2", "vuduo2",
                  "vusolose", "xpeedlx3", "gbquad", "gbquadplus"):
         movies['transcoding'] = True
     return movies
Beispiel #8
0
 def P_movielistm3u(self, request):
     request.setHeader('Content-Type', 'application/x-mpegurl')
     movielist = getMovieList(request.args)
     movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'],
                                         request.getRequestHostname(),
                                         whoami(request)['port'])
     return movielist
 def P_movies(self, request):
     if "dirname" in request.args.keys():
         movies = getMovieList(request.args["dirname"][0])
     else:
         movies = getMovieList()
     info = getInfo()
     model = info["model"]
     movies['transcoding'] = False
     if model in (
             "solo2", "duo2", "Sezam Marvel", "Xpeed LX3", "gbquad",
             "gbquadplus"
     ) and path.exists(
             eEnv.resolve(
                 '${libdir}/enigma2/python/Plugins/SystemPlugins/TransCodingSetup/plugin.pyo'
             )):
         movies['transcoding'] = True
     return movies
	def P_movielist(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]
			
		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]
			
		return getMovieList(dirname, tag, request.args)
Beispiel #11
0
	def P_movielist(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]
		self.isGZ=True
		return getMovieList(dirname, tag, request.args)
Beispiel #12
0
	def P_movielisthtml(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]
		
		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]
		
		request.setHeader("content-type", "text/html")
		return getMovieList(dirname, tag)
	def P_movielisthtml(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]
		
		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]
		
		request.setHeader("content-type", "text/html")
		return getMovieList(dirname, tag)
Beispiel #14
0
	def P_movielistrss(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]

		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s:%s" % (request.getRequestHostname(), config.OpenWebif.port.value)
		return movielist
Beispiel #15
0
    def P_movies(self, request):
        if "dirname" in request.args.keys():
            movies = getMovieList(request.args["dirname"][0])
        else:
            movies = getMovieList()
        movies["transcoding"] = getTranscodingSupport()

        sorttype = config.OpenWebif.webcache.moviesort.value
        unsort = movies["movies"]

        if sorttype == "name":
            movies["movies"] = sorted(unsort, key=lambda k: k["eventname"])
        elif sorttype == "named":
            movies["movies"] = sorted(unsort, key=lambda k: k["eventname"], reverse=True)
        elif sorttype == "date":
            movies["movies"] = sorted(unsort, key=lambda k: k["recordingtime"])
        elif sorttype == "dated":
            movies["movies"] = sorted(unsort, key=lambda k: k["recordingtime"], reverse=True)

        movies["sort"] = sorttype
        return movies
	def P_movielistrss(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]
		
		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]
		
		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s:%s" % (request.getRequestHostname(), config.OpenWebif.port.value)
		return movielist
Beispiel #17
0
	def P_movielistrss(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]

		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
Beispiel #18
0
	def P_movielistrss(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]

		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
Beispiel #19
0
	def P_movielistm3u(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]

		request.setHeader('Content-Type', 'application/text')
		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s:%s" % (request.getRequestHostname(), config.OpenWebif.port.value)
		return movielist
Beispiel #20
0
	def P_movielistm3u(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]

		request.setHeader('Content-Type', 'application/text')
		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
Beispiel #21
0
	def P_movielistm3u(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]

		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]

		request.setHeader('Content-Type', 'application/text')
		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
	def P_movielistm3u(self, request):
		tag = None
		if "tag" in request.args.keys():
			tag = request.args["tag"][0]
		
		dirname = None
		if "dirname" in request.args.keys():
			dirname = request.args["dirname"][0]
		
		request.setHeader('Content-Type', 'application/text')
		movielist = getMovieList(dirname, tag)
		movielist["host"] = "%s:%s" % (request.getRequestHostname(), config.OpenWebif.port.value)
		return movielist
Beispiel #23
0
	def P_movies(self, request):
		movies = getMovieList(request.args)
		movies['transcoding'] = TRANSCODING

		sorttype = config.OpenWebif.webcache.moviesort.value
		unsort = movies['movies']

		if sorttype == 'name':
			movies['movies'] = sorted(unsort, key=lambda k: k['eventname'])
		elif sorttype == 'named':
			movies['movies'] = sorted(unsort, key=lambda k: k['eventname'], reverse=True)
		elif sorttype == 'date':
			movies['movies'] = sorted(unsort, key=lambda k: k['recordingtime'])
		elif sorttype == 'dated':
			movies['movies'] = sorted(unsort, key=lambda k: k['recordingtime'], reverse=True)

		movies['sort'] = sorttype
		return movies
Beispiel #24
0
	def P_movies(self, request):
		movies = getMovieList(request.args)
		movies['transcoding'] = getTranscodingSupport()

		sorttype = config.OpenWebif.webcache.moviesort.value
		unsort = movies['movies']

		if sorttype == 'name':
			movies['movies'] = sorted(unsort, key=lambda k: k['eventname']) 
		elif sorttype == 'named':
			movies['movies'] = sorted(unsort, key=lambda k: k['eventname'],reverse=True) 
		elif sorttype == 'date':
			movies['movies'] = sorted(unsort, key=lambda k: k['recordingtime']) 
		elif sorttype == 'dated':
			movies['movies'] = sorted(unsort, key=lambda k: k['recordingtime'],reverse=True) 

		movies['sort'] = sorttype
		return movies
Beispiel #25
0
 def P_movielisthtml(self, request):
     request.setHeader("content-type", "text/html")
     return getMovieList(request.args)
Beispiel #26
0
 def P_movies(self, request):
     movies = getMovieList(request.args)
     movies['transcoding'] = getTranscodingSupport()
     return movies
	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		return movies
 def P_movies(self, request):
     if "dirname" in request.args.keys():
         movies = getMovieList(request.args["dirname"][0])
     else:
         movies = getMovieList()
     return movies
Beispiel #29
0
	def P_movielist(self, request):
		self.isGZ=True
		if self.isJson:
			request.setHeader("content-type", "application/json; charset=utf-8")
		return getMovieList(request.args)
Beispiel #30
0
	def P_movielistrss(self, request):
		movielist = getMovieList(request.args)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
Beispiel #31
0
	def P_movielistm3u(self, request):
		request.setHeader('Content-Type', 'application/text')
		movielist = getMovieList(request.args)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
Beispiel #32
0
 def P_movies(self, request):
     movies = getMovieList(request.args)
     movies['transcoding'] = TRANSCODING
     return movies
	def P_movies(self, request):
		movies = getMovieList(request.args)
		movies['transcoding'] = TRANSCODING
		return movies
Beispiel #34
0
 def P_movielist(self, request):
     self.isGZ = True
     return getMovieList(request.args)
Beispiel #35
0
	def P_movielisthtml(self, request):
		request.setHeader("content-type", "text/html")
		return getMovieList(request.args)
Beispiel #36
0
	def P_movielist(self, request):
		self.isGZ=True
		if self.isJson:
			request.setHeader("content-type", "application/json; charset=utf-8")
		return getMovieList(request.args)
Beispiel #37
0
	def P_movielist(self, request):
		self.isGZ=True
		return getMovieList(request.args)
Beispiel #38
0
 def P_movielistrss(self, request):
     movielist = getMovieList(request.args)
     movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'],
                                         request.getRequestHostname(),
                                         whoami(request)['port'])
     return movielist
Beispiel #39
0
	def P_movies(self, request):
		movies = getMovieList(request.args)
		movies['transcoding'] = getTranscodingSupport()
		return movies