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

Method originContent

plugin/py_ali_subtitle.py:106–127  ·  view source on GitHub ↗
(self,flag,id,vipFlags)

Source from the content-addressed store, hash-verified

104 return realUrl
105
106 def originContent(self,flag,id,vipFlags):
107 if not self.login():
108 return {}
109 ids = id.split('+')
110 shareId = ids[0]
111 shareToken = ids[1]
112 fileId = ids[2]
113 subtitle = ids[4]
114 url = '{0}?do=push_agent&api=python&type=m3u8&share_id={1}&file_id={2}'.format(self.localProxyUrl,shareId,fileId)
115 subtitleUrl = self.subtitleContent(id)
116 newHeader = {
117 "user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36",
118 "referer":"https://www.aliyundrive.com/",
119 }
120 result = {
121 'parse':'0',
122 'playUrl':'',
123 'url':url,
124 'header':newHeader,
125 'subt':subtitleUrl
126 }
127 return result
128
129 def detailContent(self,array):
130 tid = array[0]

Callers 1

playerContentMethod · 0.95

Calls 2

loginMethod · 0.95
subtitleContentMethod · 0.95

Tested by

no test coverage detected