| 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) |
| 59 | jo = self.fetch(url,headers=self.header).json() |
| 60 | videos = [] |
| 61 | vodList = jo['data']['items'] |
| 62 | for vod in vodList: |
| 63 | videos.append({ |
| 64 | "vod_id":vod['id'], |
| 65 | "vod_name":vod['title'], |
| 66 | "vod_pic":vod['cover'], |
| 67 | "vod_remarks":vod['time'] |
| 68 | }) |
| 69 | result['list'] = videos |
| 70 | result['page'] = pg |
| 71 | result['pagecount'] = 9999 |
| 72 | result['limit'] = 90 |
| 73 | result['total'] = 999999 |
| 74 | return result |
| 75 | def detailContent(self,array): |
| 76 | tid = array[0] |
| 77 | url = "https://yixi.tv/api/site/speech/{0}/detail/?_=1".format(tid) |