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

Method categoryContent

plugin/py_gitcafe.py:74–98  ·  view source on GitHub ↗
(self,tid,pg,filter,extend)

Source from the content-addressed store, hash-verified

72 result['list']=videos
73 return result
74 def categoryContent(self,tid,pg,filter,extend):
75 result = {}
76 url = self.baseUrl+'/tool/alipaper/'
77 form = {
78 "action": "viewcat",
79 "cat": tid,
80 "num":pg
81 }
82
83 rsp = requests.post(url,headers=self.header,data=form)
84 vodList = json.loads(self.cleanText(rsp.text))
85 videos = []
86 for vod in vodList:
87 videos.append({
88 "vod_id": 'https://www.aliyundrive.com/s/'+vod["key"],
89 "vod_name": vod["title"],
90 "vod_pic": "https://txc.gtimg.com/data/375895/2022/0214/d6b96cc3799b6417d30e4715d2973f64.png",
91 "vod_remarks": vod['cat']
92 })
93 result['list'] = videos
94 result['page'] = pg
95 result['pagecount'] = 9999
96 result['limit'] = 90
97 result['total'] = 999999
98 return result
99 category = ['hydm','hyds','hydy','omdm','omds','omdy','rhdm','rhds','rhdy','qtds','qtdy','qtsp','jlp','zyp']
100 def detailContent(self,array):
101 return self.ali.detailContent(array)

Callers

nothing calls this directly

Calls 2

cleanTextMethod · 0.95
postMethod · 0.45

Tested by

no test coverage detected