(self,key,quick)
| 35 | return self.ali.detailContent(array) |
| 36 | |
| 37 | def searchContent(self,key,quick): |
| 38 | url = "https://yiso.fun/api/search?name={0}&from=ali".format(key) |
| 39 | vodList = requests.get(url=url, headers=self.header, verify=False).json()["data"]["list"] |
| 40 | videos = [] |
| 41 | for vod in vodList: |
| 42 | videos.append({ |
| 43 | "vod_id": vod["url"], |
| 44 | "vod_name": vod["fileInfos"][0]["fileName"], |
| 45 | "vod_pic": "https://inews.gtimg.com/newsapp_bt/0/13263837859/1000", |
| 46 | "vod_remarks": vod['gmtCreate'] |
| 47 | }) |
| 48 | result = { |
| 49 | 'list':videos |
| 50 | } |
| 51 | return result |
| 52 | |
| 53 | def playerContent(self,flag,id,vipFlags): |
| 54 | return self.ali.playerContent(flag,id,vipFlags) |
nothing calls this directly
no outgoing calls
no test coverage detected