MCPcopy Index your code
hub / github.com/pyload/pyload / getPackageInfo

Method getPackageInfo

module/Api.py:481–496  ·  view source on GitHub ↗

Returns information about package, without detailed information about containing files :param pid: package id :return: `PackageData` with .fid attribute

(self, pid)

Source from the content-addressed store, hash-verified

479
480 @permission(PERMS.LIST)
481 def getPackageInfo(self, pid):
482 """Returns information about package, without detailed information about containing files
483
484 :param pid: package id
485 :return: `PackageData` with .fid attribute
486 """
487 data = self.core.files.getPackageData(int(pid))
488
489 if not data:
490 raise PackageDoesNotExists(pid)
491
492 pdata = PackageData(data["id"], data["name"], data["folder"], data["site"], data["password"],
493 data["queue"], data["order"],
494 fids=[int(x) for x in data["links"]])
495
496 return pdata
497
498 @permission(PERMS.LIST)
499 def getFileData(self, fid):

Callers 1

processCommandMethod · 0.45

Calls 3

PackageDataClass · 0.50
getPackageDataMethod · 0.45

Tested by

no test coverage detected