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

Method originContent

plugin/py_ali.py:68–96  ·  view source on GitHub ↗
(self,flag,id,vipFlags)

Source from the content-addressed store, hash-verified

66 }
67 return result
68 def originContent(self,flag,id,vipFlags):
69 if not self.login():
70 return {}
71 ids = id.split('+')
72 shareId = ids[0]
73 shareToken = ids[1]
74 fileId = ids[2]
75 url = '{0}?do=push_agent&api=python&type=m3u8&share_id={1}&file_id={2}'.format(self.localProxyUrl,shareId,fileId)
76
77 result = {
78 'parse':'0',
79 'playUrl':'',
80 'url':url,
81 'header':''
82 }
83
84 # shareToken = self.getToken(shareId,'')
85 # self.getMediaSlice(shareId,shareToken,fileId)
86
87
88 # map = {
89 # 'share_id':'p1GJYEqgeb2',
90 # 'file_id':'62ed1b95b1048d60ffc246669f5e0999e90b8c2f',
91 # 'media_id':'1'
92 # }
93
94 # self.proxyMedia(map)
95
96 return result
97
98 def detailContent(self,array):
99 tid = array[0]

Callers 1

playerContentMethod · 0.95

Calls 1

loginMethod · 0.95

Tested by

no test coverage detected