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

Method homeVideoContent

plugin/py_kunyu77.py:30–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 result['filters'] = self.config['filter']
29 return result
30 def homeVideoContent(self):
31 url = 'http://api.kunyu77.com/api.php/provide/homeBlock?type_id=0'
32 rsp = self.fetch(url,headers=self.header)
33 jo = json.loads(rsp.text)
34 blockList = jo['data']['blocks']
35 videos = []
36 for block in blockList:
37 vodList = block['contents']
38 for vod in vodList:
39 videos.append({
40 "vod_id":vod['id'],
41 "vod_name":vod['title'],
42 "vod_pic":vod['videoCover'],
43 "vod_remarks":vod['msg']
44 })
45 result = {
46 'list':videos
47 }
48 return result
49 def categoryContent(self,tid,pg,filter,extend):
50 result = {}
51 if 'type_id' not in extend.keys():

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected