本文整理汇总了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;未经允许,请勿转载。 |
请发表评论