MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / searchContent

Method searchContent

plugin/py_yiso.py:37–51  ·  view source on GitHub ↗
(self,key,quick)

Source from the content-addressed store, hash-verified

35 return self.ali.detailContent(array)
36
37 def searchContent(self,key,quick):
38 url = "https://yiso.fun/api/search?name={0}&from=ali".format(key)
39 vodList = requests.get(url=url, headers=self.header, verify=False).json()["data"]["list"]
40 videos = []
41 for vod in vodList:
42 videos.append({
43 "vod_id": vod["url"],
44 "vod_name": vod["fileInfos"][0]["fileName"],
45 "vod_pic": "https://inews.gtimg.com/newsapp_bt/0/13263837859/1000",
46 "vod_remarks": vod['gmtCreate']
47 })
48 result = {
49 'list':videos
50 }
51 return result
52
53 def playerContent(self,flag,id,vipFlags):
54 return self.ali.playerContent(flag,id,vipFlags)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected