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

Method searchContent

plugin/py_gitcafe.py:102–121  ·  view source on GitHub ↗
(self,key,quick)

Source from the content-addressed store, hash-verified

100 def detailContent(self,array):
101 return self.ali.detailContent(array)
102 def searchContent(self,key,quick):
103 result = {}
104 url = self.baseUrl+'/tool/alipaper/'
105 form = {
106 "action": "search",
107 "keyword": key
108 }
109 vodList = requests.post(url,headers=self.header,data=form).json()
110 videos = []
111 for vod in vodList:
112 videos.append({
113 "vod_id": 'https://www.aliyundrive.com/s/'+vod["key"],
114 "vod_name": vod["title"],
115 "vod_pic": "https://txc.gtimg.com/data/375895/2022/0214/d6b96cc3799b6417d30e4715d2973f64.png",
116 "vod_remarks": vod['cat']
117 })
118 result = {
119 'list':videos
120 }
121 return result
122 def playerContent(self,flag,id,vipFlags):
123 return self.ali.playerContent(flag,id,vipFlags)
124

Callers

nothing calls this directly

Calls 1

postMethod · 0.45

Tested by

no test coverage detected