MCPcopy
hub / github.com/pyload/pyload / generateAndAddPackages

Method generateAndAddPackages

module/Api.py:439–447  ·  view source on GitHub ↗

Generates and add packages :param links: list of urls :param dest: `Destination` :return: list of package ids

(self, links, dest=Destination.Queue)

Source from the content-addressed store, hash-verified

437
438 @permission(PERMS.ADD)
439 def generateAndAddPackages(self, links, dest=Destination.Queue):
440 """Generates and add packages
441
442 :param links: list of urls
443 :param dest: `Destination`
444 :return: list of package ids
445 """
446 return [self.addPackage(name, urls, dest) for name, urls
447 in self.generatePackages(links).iteritems()]
448
449 @permission(PERMS.ADD)
450 def checkAndAddPackages(self, links, dest=Destination.Queue):

Callers

nothing calls this directly

Calls 3

addPackageMethod · 0.95
generatePackagesMethod · 0.95
iteritemsMethod · 0.45

Tested by

no test coverage detected