| 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) |
| 78 | jo = self.fetch(url,headers=self.header).json() |
| 79 | |
| 80 | vod = { |
| 81 | "vod_id":jo['data']['speech']['id'], |
| 82 | "vod_name":jo['data']['speech']['title'], |
| 83 | "vod_pic":jo['data']['speech']['cover'], |
| 84 | "type_name":jo['data']['speech']['first_category'], |
| 85 | "vod_year":"", |
| 86 | "vod_area":"", |
| 87 | "vod_remarks":jo['data']['speech']['date'], |
| 88 | "vod_actor":"", |
| 89 | "vod_director":"", |
| 90 | "vod_content":jo['data']['speech']['titlelanguage'] |
| 91 | } |
| 92 | |
| 93 | vod['vod_play_from'] = '一席' |
| 94 | pList = [] |
| 95 | for vUrl in jo['data']['speech']['video_url']: |
| 96 | pList.append(vUrl['type_name']+"$"+vUrl['video_url']) |
| 97 | vod['vod_play_url'] = '#'.join(pList) |
| 98 | result = { |
| 99 | 'list':[ |
| 100 | vod |
| 101 | ] |
| 102 | } |
| 103 | return result |
| 104 | def searchContent(self,key,quick): |
| 105 | result = { |
| 106 | 'list':[] |