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

Method localProxy

plugin/py_ali.py:321–329  ·  view source on GitHub ↗
(self,param)

Source from the content-addressed store, hash-verified

319 return [200, "application/octet-stream", action, content]
320
321 def localProxy(self,param):
322 if not self.login():
323 return {}
324 typ = param['type']
325 if typ == "m3u8":
326 return self.proxyM3U8(param)
327 if typ == "media":
328 return self.proxyMedia(param)
329 return None
330
331 def getToken(self,shareId,sharePwd):
332 self.localTime = int(time.time())

Callers

nothing calls this directly

Calls 3

loginMethod · 0.95
proxyM3U8Method · 0.95
proxyMediaMethod · 0.95

Tested by

no test coverage detected