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

Method detailContent

plugin/py_pansou.py:30–45  ·  view source on GitHub ↗
(self,array)

Source from the content-addressed store, hash-verified

28 return result
29
30 def detailContent(self,array):
31 tid = array[0]
32 print(self.getName())
33 pattern = '(https:\\/\\/www.aliyundrive.com\\/s\\/[^\\\"]+)'
34 url = self.regStr(tid,pattern)
35 if len(url) > 0:
36 return self.ali.detailContent(array)
37
38 rsp = self.fetch('https://www.alipansou.com'+tid)
39 url = self.regStr(rsp.text,pattern)
40 if len(url) == 0:
41 return ""
42 url = url.replace('\\','')
43 newArray = [url]
44 print(newArray)
45 return self.ali.detailContent(newArray)
46
47
48 def searchContent(self,key,quick):

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.95
regStrMethod · 0.95
fetchMethod · 0.95

Tested by

no test coverage detected