Esempio n. 1
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
Esempio n. 2
0
 def P_movies(self, request):
     movies = getMovieList(request.args)
     movies['transcoding'] = TRANSCODING
     return movies
Esempio n. 3
0
 def P_movies(self, request):
     movies = getMovieList(request.args)
     movies['transcoding'] = getHaveTranscoding()
     return movies