| 37 | result['filters'] = self.config['filter'] |
| 38 | return result |
| 39 | def homeVideoContent(self): |
| 40 | # url = 'https://yixi.tv/api/site/album/?page=1&page_size=4&_=1' |
| 41 | url = 'https://yixi.tv/api/site/album/22/detail/?page=1&page_size=24&_=1' |
| 42 | jo = self.fetch(url,headers=self.header).json() |
| 43 | videos = [] |
| 44 | vodList = jo['data']['items'] |
| 45 | for vod in vodList: |
| 46 | videos.append({ |
| 47 | "vod_id":vod['id'], |
| 48 | "vod_name":vod['title'], |
| 49 | "vod_pic":vod['cover'], |
| 50 | "vod_remarks":vod['time'] |
| 51 | }) |
| 52 | result = { |
| 53 | 'list':videos |
| 54 | } |
| 55 | return result |
| 56 | def categoryContent(self,tid,pg,filter,extend): |
| 57 | result = {} |
| 58 | url = 'https://yixi.tv/api/site/speech/?page={1}&page_size=12&category_id={0}&order_by=0&_=1'.format(tid,pg) |