summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-10 13:44:19 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-01-10 13:44:19 +0100
commitbb7f35b09bc2491b4d37444c0fa2c5a6406f7415 (patch)
treebe4fdc1d57caf3ff98bd910cef2d2adeaecff5f5
parentupdate multihoster when account updates (diff)
downloadpyload-bb7f35b09bc2491b4d37444c0fa2c5a6406f7415.tar.xz
don't decrypt link when added to package
-rw-r--r--pyload/api/DownloadApi.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/api/DownloadApi.py b/pyload/api/DownloadApi.py
index 38871cca7..d6719ee1d 100644
--- a/pyload/api/DownloadApi.py
+++ b/pyload/api/DownloadApi.py
@@ -8,6 +8,7 @@ from pyload.utils.fs import join
from ApiComponent import ApiComponent
+
class DownloadApi(ApiComponent):
""" Component to create, add, delete or modify downloads."""
@@ -62,7 +63,7 @@ class DownloadApi(ApiComponent):
folder = ""
pid = self.createPackage(name, folder, root, password, paused=paused)
- self.addLinks(pid, links)
+ self.addLinks(pid, links, paused)
return pid
@@ -75,12 +76,10 @@ class DownloadApi(ApiComponent):
"""
hoster, crypter = self.core.pluginManager.parseUrls(links)
+ self.core.files.addLinks(hoster + crypter, pid)
if hoster:
- self.core.files.addLinks(hoster, pid)
self.core.threadManager.createInfoThread(hoster, pid)
- self.core.threadManager.createDecryptThread(crypter, pid)
-
self.core.log.info((_("Added %d links to package") + " #%d" % pid) % len(hoster))
self.core.files.save()