diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-12 11:59:05 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-12 11:59:05 +0100 |
commit | 970cc3f03e8bd02d1e5a27bb2d0977252e5c6543 (patch) | |
tree | 26506a74b176f953d4108558f2629d04b6b5bd2f | |
parent | new manager to schedule downloads (diff) | |
download | pyload-970cc3f03e8bd02d1e5a27bb2d0977252e5c6543.tar.xz |
fixed last commit
-rw-r--r-- | pyload/api/DownloadApi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/api/DownloadApi.py b/pyload/api/DownloadApi.py index dbb289db1..b29f9c06c 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, self.primaryUID) + pid = self.core.files.addPackage(name, folder, root, password, site, comment, paused, self.user.true_primary) return pid @@ -76,7 +76,7 @@ class DownloadApi(ApiComponent): """ hoster, crypter = self.core.pluginManager.parseUrls(links) - self.core.files.addLinks(hoster + crypter, pid, self.primaryUID) + self.core.files.addLinks(hoster + crypter, pid, self.user.true_primary) if hoster: self.core.threadManager.createInfoThread(hoster, pid) |