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

Method searchContent

plugin/py_kunyu77.py:130–146  ·  view source on GitHub ↗
(self,key,quick)

Source from the content-addressed store, hash-verified

128 return result
129
130 def searchContent(self,key,quick):
131 url = 'http://api.kunyu77.com/api.php/provide/searchVideo?searchName={0}'.format(key)
132 rsp = self.fetch(url,headers=self.header)
133 jo = json.loads(rsp.text)
134 vodList = jo['data']
135 videos = []
136 for vod in vodList:
137 videos.append({
138 "vod_id":vod['id'],
139 "vod_name":vod['videoName'],
140 "vod_pic":vod['videoCover'],
141 "vod_remarks":vod['msg']
142 })
143 result = {
144 'list':videos
145 }
146 return result
147
148 config = {
149 "player": {},

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected