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

Method homeContent

plugin/py_xmaomi.py:18–36  ·  view source on GitHub ↗
(self,filter)

Source from the content-addressed store, hash-verified

16 def manualVideoCheck(self):
17 pass
18 def homeContent(self,filter):
19 result = {}
20 cateManual = {
21 "电影":"1",
22 "电视剧":"2",
23 "综艺":"3",
24 "动漫":"4",
25 "纪录":"5"
26 }
27 classes = []
28 for k in cateManual:
29 classes.append({
30 'type_name':k,
31 'type_id':cateManual[k]
32 })
33 result['class'] = classes
34 if(filter):
35 result['filters'] = self.config['filter']
36 return result
37 def homeVideoContent(self):
38 tmpRsp = self.fetch("https://xmaomi.net/")
39 suffix = self.regStr(tmpRsp.text,"window.location.href =\"(\\S+)\"")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected