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

Method addLinks

module/database/FileDatabase.py:620–625  ·  view source on GitHub ↗

links is a list of tupels (url,plugin)

(self, links, package)

Source from the content-addressed store, hash-verified

618
619 @style.queue
620 def addLinks(self, links, package):
621 """ links is a list of tupels (url,plugin)"""
622 order = self._nextFileOrder(package)
623 orders = [order + x for x in range(len(links))]
624 links = [(x[0], x[0], x[1], package, o) for x, o in zip(links, orders)]
625 self.c.executemany('INSERT INTO links(url, name, plugin, package, linkorder) VALUES(?,?,?,?,?)', links)
626
627 @style.queue
628 def addPackage(self, name, folder, queue):

Callers

nothing calls this directly

Calls 1

_nextFileOrderMethod · 0.95

Tested by

no test coverage detected