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

Method homeContent

plugin/py_kunyu77.py:14–29  ·  view source on GitHub ↗
(self,filter)

Source from the content-addressed store, hash-verified

12 print("============{0}============".format(extend))
13 pass
14 def homeContent(self,filter):
15 result = {}
16 url = 'http://api.kunyu77.com/api.php/provide/filter'
17 rsp = self.fetch(url,headers=self.header)
18 jo = json.loads(rsp.text)
19 classes = []
20 jData = jo['data']
21 for cKey in jData.keys():
22 classes.append({
23 'type_name':jData[cKey][0]['cat'],
24 'type_id':cKey
25 })
26 result['class'] = classes
27 if(filter):
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)

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected