summaryrefslogtreecommitdiffstats
path: root/pyload/api/DownloadApi.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/api/DownloadApi.py')
-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)