summaryrefslogtreecommitdiffstats
path: root/module/plugins/Crypter.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-18 22:19:25 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-01-18 22:19:25 +0100
commitd89e6a0eda653f45090c0265aa724bfd011a2ca8 (patch)
treedb8cdc153950fa13a0da6efc99ae602d3ccded76 /module/plugins/Crypter.py
parentnetfolder, hotfile fix, filesonic/sharingmatrix beta (diff)
downloadpyload-d89e6a0eda653f45090c0265aa724bfd011a2ca8.tar.xz
new cryptit plugin
Diffstat (limited to 'module/plugins/Crypter.py')
-rw-r--r--module/plugins/Crypter.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py
index 0cff3bf1c..ae8fef9e4 100644
--- a/module/plugins/Crypter.py
+++ b/module/plugins/Crypter.py
@@ -60,7 +60,10 @@ class Crypter(Plugin):
""" create new packages from self.packages """
for pack in self.packages:
- self.log.debug(_("Parsed package %(name)s with %(len)d links") % { "name" : pack[0], "len" : len(pack[1]) } )
+ self.log.debug("Parsed package %(name)s with %(len)d links" % { "name" : pack[0], "len" : len(pack[1]) } )
- self.core.server_methods.add_package(pack[0], pack[1], self.pyfile.package().queue)
+ pid = self.core.server_methods.add_package(pack[0], pack[1], self.pyfile.package().queue)
+
+ if self.pyfile.package().password:
+ self.core.server_methods.set_package_data(pid, {"password": self.pyfile.package().password})