summaryrefslogtreecommitdiffstats
path: root/module/plugins/Crypter.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/Crypter.py')
-rw-r--r--module/plugins/Crypter.py14
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])