| 154 | return result |
| 155 | |
| 156 | def playerContent(self, flag, id, vipFlags): |
| 157 | result = {} |
| 158 | ids = id.split("_") |
| 159 | header = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"} |
| 160 | url = 'https://www.3qu.live/api/v1/videos/{0}/{1}/playUrl'.format(ids[0],ids[1]) |
| 161 | rsp = self.fetch(url,headers=header) |
| 162 | jRoot = json.loads(rsp.text) |
| 163 | apiurl = jRoot['data']['url'] |
| 164 | url = 'https://www.3qu.live{0}'.format(apiurl) |
| 165 | result["parse"] = 0 |
| 166 | result["playUrl"] = '' |
| 167 | result["url"] =url |
| 168 | result["header"] = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"} |
| 169 | return result |
| 170 | |
| 171 | config = { |
| 172 | "player": {}, |