diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-17 18:29:50 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-06-24 22:42:29 +0200 |
commit | 164512b6a74c94a731fcee7435dce1ccfa2f71e7 (patch) | |
tree | 3f61d3b83f641070145b478f54522c4fe2e63691 /module/plugins/internal/Crypter.py | |
parent | Spare fixes (diff) | |
download | pyload-164512b6a74c94a731fcee7435dce1ccfa2f71e7.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/Crypter.py')
-rw-r--r-- | module/plugins/internal/Crypter.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/module/plugins/internal/Crypter.py b/module/plugins/internal/Crypter.py index a713c7da6..e97f22316 100644 --- a/module/plugins/internal/Crypter.py +++ b/module/plugins/internal/Crypter.py @@ -34,8 +34,9 @@ class Crypter(Hoster): def process(self, pyfile): - """Main method""" - + """ + Main method + """ self.decrypt(pyfile) if self.urls: @@ -52,20 +53,22 @@ class Crypter(Hoster): def _generate_packages(self): - """Generate new packages from self.urls""" - + """ + Generate new packages from self.urls + """ packages = [(name, links, None) for name, links in self.core.api.generatePackages(self.urls).iteritems()] self.packages.extend(packages) def _create_packages(self): - """Create new packages from self.packages""" - + """ + Create new packages from self.packages + """ package_folder = self.pyfile.package().folder package_password = self.pyfile.package().password package_queue = self.pyfile.package().queue - folder_per_package = self.core.config.get('general', 'folder_per_package') + folder_per_package = self.core.config.get("general", "folder_per_package") use_subfolder = self.getConfig('use_subfolder', folder_per_package) subfolder_per_package = self.getConfig('subfolder_per_package', True) |