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

Method getVersion

plugin/py_alist.py:62–76  ·  view source on GitHub ↗
(self, gtid)

Source from the content-addressed store, hash-verified

60 ver = ''
61 baseurl = ''
62 def getVersion(self, gtid):
63 param = {
64 "path": '/'
65 }
66 if gtid.count('/') == 2:
67 gtid = gtid + '/'
68 baseurl = re.findall(r"http.*://.*?/", gtid)[0]
69 ver = self.fetch(baseurl + 'api/public/settings', param)
70 vjo = json.loads(ver.text)['data']
71 if type(vjo) is dict:
72 ver = 3
73 else:
74 ver = 2
75 self.ver = ver
76 self.baseurl = baseurl
77
78 def categoryContent(self, tid, pg, filter, extend):
79 result = {}

Callers 3

categoryContentMethod · 0.95
detailContentMethod · 0.95
playerContentMethod · 0.95

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected