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

Method proxyM3U8

plugin/py_ali_subtitle.py:328–343  ·  view source on GitHub ↗
(self,map)

Source from the content-addressed store, hash-verified

326 return [200, "video/MP2T", action, ""]
327
328 def proxyM3U8(self,map):
329 shareId = map['share_id']
330 fileId = map['file_id']
331
332 shareToken = self.getToken(shareId,'')
333 content = self.getMediaSlice(shareId,shareToken,fileId)
334
335 action = {
336 'url':'',
337 'header':'',
338 'param':'',
339 'type':'string',
340 'after':''
341 }
342
343 return [200, "application/octet-stream", action, content]
344
345 def localProxy(self,param):
346 if not self.login():

Callers 1

localProxyMethod · 0.95

Calls 2

getTokenMethod · 0.95
getMediaSliceMethod · 0.95

Tested by

no test coverage detected