| 185 | } |
| 186 | return result |
| 187 | def playerContent(self,flag,id,vipFlags): |
| 188 | url = 'https://gimytv.co/{0}.html'.format(id) |
| 189 | rsp = self.fetch(url,headers=self.header) |
| 190 | root = self.html(rsp.text) |
| 191 | scripts = root.xpath("//script/text()") |
| 192 | jo = {} |
| 193 | for script in scripts: |
| 194 | if(script.startswith("var player_")): |
| 195 | target = script[script.index('{'):] |
| 196 | jo = json.loads(target) |
| 197 | break; |
| 198 | url = jo['url'] |
| 199 | result = {} |
| 200 | result["parse"] = 0 |
| 201 | result["playUrl"] = '' |
| 202 | result["url"] = url |
| 203 | result["header"] = '' |
| 204 | return result |
| 205 | |
| 206 | cookie = {} |
| 207 | config = { |