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

Method proxyM3U8

plugin/py_ali.py:304–319  ·  view source on GitHub ↗
(self,map)

Source from the content-addressed store, hash-verified

302 return [200, "video/MP2T", action, ""]
303
304 def proxyM3U8(self,map):
305 shareId = map['share_id']
306 fileId = map['file_id']
307
308 shareToken = self.getToken(shareId,'')
309 content = self.getMediaSlice(shareId,shareToken,fileId)
310
311 action = {
312 'url':'',
313 'header':'',
314 'param':'',
315 'type':'string',
316 'after':''
317 }
318
319 return [200, "application/octet-stream", action, content]
320
321 def localProxy(self,param):
322 if not self.login():

Callers 1

localProxyMethod · 0.95

Calls 2

getTokenMethod · 0.95
getMediaSliceMethod · 0.95

Tested by

no test coverage detected