MCPcopy Create free account
hub / github.com/UndCover/PyramidStore / playerContent

Method playerContent

plugin/py_gimytv.py:187–204  ·  view source on GitHub ↗
(self,flag,id,vipFlags)

Source from the content-addressed store, hash-verified

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 = {

Callers

nothing calls this directly

Calls 2

fetchMethod · 0.95
htmlMethod · 0.95

Tested by

no test coverage detected