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

Method searchContent

plugin/py_voflix.py:167–187  ·  view source on GitHub ↗
(self,key,quick)

Source from the content-addressed store, hash-verified

165 }
166 return result
167 def searchContent(self,key,quick):
168 url = "https://www.voflix.com/index.php/ajax/suggest?mid=1&wd={0}".format(key)
169 rsp = self.fetch(url,headers=self.header)
170 jo = json.loads(rsp.text)
171 vodList = jo['list']
172 videos = []
173 for vod in vodList:
174 name = vod['name']
175 pic = vod['pic']
176 mark = ''
177 sid = vod['id']
178 videos.append({
179 "vod_id":sid,
180 "vod_name":name,
181 "vod_pic":pic,
182 "vod_remarks":mark
183 })
184 result = {
185 'list':videos
186 }
187 return result
188 def playerContent(self,flag,id,vipFlags):
189 # https://meijuchong.cc/static/js/playerconfig.js
190 result = {}

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected