MCPcopy
hub / github.com/pyload/pyload / addLink

Method addLink

module/database/FileDatabase.py:614–617  ·  view source on GitHub ↗
(self, url, name, plugin, package)

Source from the content-addressed store, hash-verified

612
613 @style.queue
614 def addLink(self, url, name, plugin, package):
615 order = self._nextFileOrder(package)
616 self.c.execute('INSERT INTO links(url, name, plugin, package, linkorder) VALUES(?,?,?,?,?)', (url, name, plugin, package, order))
617 return self.c.lastrowid
618
619 @style.queue
620 def addLinks(self, links, package):

Callers 1

FileDatabase.pyFile · 0.80

Calls 2

_nextFileOrderMethod · 0.95
executeMethod · 0.80

Tested by

no test coverage detected