| 53 | result['filter'] = self.config['filter'] |
| 54 | return result |
| 55 | def homeVideoContent(self): |
| 56 | result = {} |
| 57 | if len(self.homeData.keys()) == 0: |
| 58 | url = self.baseUrl+'/alipaper/home.json' |
| 59 | self.homeData = self.fetch(url,headers=self.header).json() |
| 60 | cateList = self.homeData['data'] |
| 61 | videos = [] |
| 62 | for cate in cateList: |
| 63 | if cate['info']['code'] in self.category: |
| 64 | vodList = cate['data'] |
| 65 | for vod in vodList: |
| 66 | videos.append({ |
| 67 | "vod_id":"https://www.aliyundrive.com/s/" + vod['key'], |
| 68 | "vod_name":vod['title'], |
| 69 | "vod_pic":'https://txc.gtimg.com/data/375895/2022/0214/d6b96cc3799b6417d30e4715d2973f64.png', |
| 70 | "vod_remarks":'' |
| 71 | }) |
| 72 | result['list']=videos |
| 73 | return result |
| 74 | def categoryContent(self,tid,pg,filter,extend): |
| 75 | result = {} |
| 76 | url = self.baseUrl+'/tool/alipaper/' |