• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python movies.getMovieList函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中models.movies.getMovieList函数的典型用法代码示例。如果您正苦于以下问题:Python getMovieList函数的具体用法?Python getMovieList怎么用?Python getMovieList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getMovieList函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: P_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
开发者ID:system-it,项目名称:e2openplugin-OpenWebif,代码行数:7,代码来源:ajax.py


示例2: P_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", "Sezam Marvel", "Xpeed LX3", "gbquad", "gbquadplus") and path.exists(eEnv.resolve('${libdir}/enigma2/python/Plugins/SystemPlugins/TransCodingSetup/plugin.pyo')):
			movies['transcoding'] = True
		return movies
开发者ID:OpenLD,项目名称:e2openplugin-OpenWebif,代码行数:11,代码来源:ajax.py


示例3: P_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
开发者ID:berkantxx27,项目名称:e2openplugin-OpenWebif,代码行数:11,代码来源:ajax.py


示例4: P_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
开发者ID:emedril,项目名称:enigma2-plugin-extensions-openwebif,代码行数:12,代码来源:ajax.py


示例5: P_movielist

	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)
开发者ID:berkantxx27,项目名称:e2openplugin-OpenWebif,代码行数:10,代码来源:web.py


示例6: P_movielisthtml

	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)
开发者ID:berkantxx27,项目名称:e2openplugin-OpenWebif,代码行数:11,代码来源:web.py


示例7: P_movielistrss

	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
开发者ID:athoik,项目名称:e2openplugin-OpenWebif,代码行数:12,代码来源:web.py


示例8: P_movies

    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
开发者ID:Dima73,项目名称:e2openplugin-OpenWebif,代码行数:21,代码来源:ajax.py


示例9: P_movielistrss

	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
开发者ID:berkantxx27,项目名称:e2openplugin-OpenWebif,代码行数:12,代码来源:web.py


示例10: P_movielistm3u

	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
开发者ID:athoik,项目名称:e2openplugin-OpenWebif,代码行数:13,代码来源:web.py


示例11: P_movielistm3u

	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
开发者ID:berkantxx27,项目名称:e2openplugin-OpenWebif,代码行数:13,代码来源:web.py


示例12: P_movielist

	def P_movielist(self, request):
		self.isGZ=True
		if self.isJson:
			request.setHeader("content-type", "application/json; charset=utf-8")
		return getMovieList(request.args)
开发者ID:GeirJ,项目名称:e2openplugin-OpenWebif,代码行数:5,代码来源:web.py


示例13: P_movielist

	def P_movielist(self, request):
		self.isGZ=True
		return getMovieList(request.args)
开发者ID:HDMU,项目名称:e2openplugin-OpenWebif,代码行数:3,代码来源:web.py


示例14: P_movielisthtml

	def P_movielisthtml(self, request):
		request.setHeader("content-type", "text/html")
		return getMovieList(request.args)
开发者ID:HDMU,项目名称:e2openplugin-OpenWebif,代码行数:3,代码来源:web.py


示例15: P_movielistm3u

	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
开发者ID:HDMU,项目名称:e2openplugin-OpenWebif,代码行数:5,代码来源:web.py


示例16: P_movielistrss

	def P_movielistrss(self, request):
		movielist = getMovieList(request.args)
		movielist["host"] = "%s://%s:%s" % (whoami(request)['proto'], request.getRequestHostname(), whoami(request)['port'])
		return movielist
开发者ID:HDMU,项目名称:e2openplugin-OpenWebif,代码行数:4,代码来源:web.py


示例17: P_movies

	def P_movies(self, request):
		if "dirname" in request.args.keys():
			movies = getMovieList(request.args["dirname"][0])
		else:
			movies = getMovieList()
		return movies
开发者ID:rodrigopill,项目名称:e2openplugin-OpenWebif,代码行数:6,代码来源:ajax.py


示例18: P_movies

	def P_movies(self, request):
		movies = getMovieList(request.args)
		movies['transcoding'] = getTranscodingSupport()
		return movies
开发者ID:GeirJ,项目名称:e2openplugin-OpenWebif,代码行数:4,代码来源:mobile.py


示例19: P_movies

	def P_movies(self, request):
		movies = getMovieList(request.args)
		movies['transcoding'] = TRANSCODING
		return movies
开发者ID:E2OpenPlugins,项目名称:e2openplugin-OpenWebif,代码行数:4,代码来源:mobile.py



注:本文中的models.movies.getMovieList函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python order.Order类代码示例发布时间:2022-05-27
下一篇:
Python models.StudentProfileDAO类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap