| 79 | result['total'] = 999999 |
| 80 | return result |
| 81 | def detailContent(self,array): |
| 82 | aid = array[0].split('###') |
| 83 | tid = aid[0] |
| 84 | url = "https://vdn.apps.cntv.cn/api/getHttpVideoInfo.do?pid={0}".format(tid) |
| 85 | |
| 86 | rsp = self.fetch(url,headers=self.header) |
| 87 | jo = json.loads(rsp.text) |
| 88 | title = jo['title'].strip() |
| 89 | link = jo['hls_url'].strip() |
| 90 | vod = { |
| 91 | "vod_id":tid, |
| 92 | "vod_name":title, |
| 93 | "vod_pic":aid[1], |
| 94 | "type_name":'', |
| 95 | "vod_year":"", |
| 96 | "vod_area":"", |
| 97 | "vod_remarks":"", |
| 98 | "vod_actor":"", |
| 99 | "vod_director":"", |
| 100 | "vod_content":"" |
| 101 | } |
| 102 | vod['vod_play_from'] = 'CCTV' |
| 103 | vod['vod_play_url'] = title+"$"+link |
| 104 | |
| 105 | result = { |
| 106 | 'list':[ |
| 107 | vod |
| 108 | ] |
| 109 | } |
| 110 | return result |
| 111 | def searchContent(self,key,quick): |
| 112 | result = { |
| 113 | 'list':[] |