diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-10 13:44:19 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2014-01-10 13:44:19 +0100 |
commit | bb7f35b09bc2491b4d37444c0fa2c5a6406f7415 (patch) | |
tree | be4fdc1d57caf3ff98bd910cef2d2adeaecff5f5 | |
parent | update multihoster when account updates (diff) | |
download | pyload-bb7f35b09bc2491b4d37444c0fa2c5a6406f7415.tar.xz |
don't decrypt link when added to package
-rw-r--r-- | pyload/api/DownloadApi.py | 7 |
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() |