summaryrefslogtreecommitdiffstats
path: root/pyload/api
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-12 11:50:24 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-12 11:50:24 +0100
commitb8670f44e228d6fd01b42c3a950756b6f56e1701 (patch)
treed4f6fb9a97528dbeac5272d00f84fa5e41bc9ed9 /pyload/api
parentsmall cleanup, fixed some test cases (diff)
downloadpyload-b8670f44e228d6fd01b42c3a950756b6f56e1701.tar.xz
new manager to schedule downloads
Diffstat (limited to 'pyload/api')
-rw-r--r--pyload/api/DownloadApi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/api/DownloadApi.py b/pyload/api/DownloadApi.py
index 526fff6e0..dbb289db1 100644
--- a/pyload/api/DownloadApi.py
+++ b/pyload/api/DownloadApi.py
@@ -32,7 +32,7 @@ class DownloadApi(ApiComponent):
folder = folder.replace("http://", "").replace(":", "").replace("\\", "_").replace("..", "")
self.core.log.info(_("Added package %(name)s as folder %(folder)s") % {"name": name, "folder": folder})
- pid = self.core.files.addPackage(name, folder, root, password, site, comment, paused)
+ pid = self.core.files.addPackage(name, folder, root, password, site, comment, paused, self.primaryUID)
return pid
@@ -76,7 +76,7 @@ class DownloadApi(ApiComponent):
"""
hoster, crypter = self.core.pluginManager.parseUrls(links)
- self.core.files.addLinks(hoster + crypter, pid)
+ self.core.files.addLinks(hoster + crypter, pid, self.primaryUID)
if hoster:
self.core.threadManager.createInfoThread(hoster, pid)