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

Method localProxy

plugin/py_ali_subtitle.py:345–353  ·  view source on GitHub ↗
(self,param)

Source from the content-addressed store, hash-verified

343 return [200, "application/octet-stream", action, content]
344
345 def localProxy(self,param):
346 if not self.login():
347 return {}
348 typ = param['type']
349 if typ == "m3u8":
350 return self.proxyM3U8(param)
351 if typ == "media":
352 return self.proxyMedia(param)
353 return None
354
355 def getToken(self,shareId,sharePwd):
356 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