summaryrefslogtreecommitdiffstats
path: root/module/plugins/Crypter.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 03:52:43 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 03:52:43 +0200
commit6095d23005ad6f381d7d224609ebcd194240ce6d (patch)
tree6e1e095ba94fd88f01b2bef7fd5c7f1f618b1194 /module/plugins/Crypter.py
parentsave_path and save_join renamed to safe_path and safe_join (diff)
downloadpyload-6095d23005ad6f381d7d224609ebcd194240ce6d.tar.xz
[Plugin] Call api faster
Diffstat (limited to 'module/plugins/Crypter.py')
-rw-r--r--module/plugins/Crypter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py
index 6c73edc60..6a0fd467b 100644
--- a/module/plugins/Crypter.py
+++ b/module/plugins/Crypter.py
@@ -49,14 +49,14 @@ class Crypter(Plugin):
links = [x.decode("utf-8") for x in links]
- pid = self.core.api.addPackage(name, links, self.pyfile.package().queue)
+ pid = self.api.addPackage(name, links, self.pyfile.package().queue)
if name != folder is not None:
- self.core.api.setPackageData(pid, {"folder": folder}) #: Due to not break API addPackage method right now
+ self.api.setPackageData(pid, {"folder": folder}) #: Due to not break API addPackage method right now
self.logDebug("Set package %(name)s folder to %(folder)s" % {"name": name, "folder": folder})
if self.pyfile.package().password:
- self.core.api.setPackageData(pid, {"password": self.pyfile.package().password})
+ self.api.setPackageData(pid, {"password": self.pyfile.package().password})
if self.urls:
- self.core.api.generateAndAddPackages(self.urls)
+ self.api.generateAndAddPackages(self.urls)