diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-18 22:19:07 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-18 22:19:07 +0200 |
commit | 8067fe27191f1726e9f5a7eb705d3973a69bf38e (patch) | |
tree | e898649b4572c3a755549215c5cdff9a22f9eb02 /module/plugins/Crypter.py | |
parent | edited readme, save configs after start (diff) | |
download | pyload-8067fe27191f1726e9f5a7eb705d3973a69bf38e.tar.xz |
fixes, missing file
Diffstat (limited to 'module/plugins/Crypter.py')
-rw-r--r-- | module/plugins/Crypter.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py index 77dc34990..2b0ba1460 100644 --- a/module/plugins/Crypter.py +++ b/module/plugins/Crypter.py @@ -50,19 +50,9 @@ class Crypter(Plugin): #---------------------------------------------------------------------- def createPackages(self): """ create new packages from self.packages """ - for i, pack in enumerate(self.packages): + for pack in self.packages: self.log.info(_("Parsed package %s with %s links") % (pack[0], len(pack[1]) ) ) - if i == 0: - # replace current package with new one - self.pyfile.package().name = pack[0] - self.pyfile.package().folder = pack[2] if self.core.config["general"]["folder_per_package"] else "" - self.pyfile.package().notifyChange() - - self.core.files.addLinks(pack[1], self.pyfile.package().id) - - self.pyfile.package().sync() - else: - self.core.server_methods.add_package(pack[0], pack[1]) + self.core.server_methods.add_package(pack[0], pack[1]) |