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

Method homeContent

plugin/py_genmov.py:18–39  ·  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 # genmov
20 # https://www.genmov.com/v/yinyue.html
21 result = {}
22 cateManual = {
23 "电影":"dianying",
24 "连续剧":"lianxuju",
25 "动漫":"dongman",
26 "综艺":"zongyi",
27 "少儿":"shaoer",
28 "音乐":"yinyue"
29 }
30 classes = []
31 for k in cateManual:
32 classes.append({
33 'type_name':k,
34 'type_id':cateManual[k]
35 })
36 result['class'] = classes
37 if(filter):
38 result['filters'] = self.config['filter']
39 return result
40 def homeVideoContent(self):
41 rsp = self.fetch("https://www.genmov.com/",headers=self.header)
42 root = self.html(rsp.text)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected