diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-14 20:54:06 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-14 20:54:06 +0200 |
commit | 0fcf2d26f00dbdd849be511fb5b657c4f505b6bc (patch) | |
tree | cebaad2676dbe6d37259baabdc07efd08b1a7a72 /module/plugins/hooks/ExtractArchive.py | |
parent | improved extract plugin (diff) | |
download | pyload-0fcf2d26f00dbdd849be511fb5b657c4f505b6bc.tar.xz |
simple unzip plugin
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r-- | module/plugins/hooks/ExtractArchive.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py index 62d386c99..0489d1a0a 100644 --- a/module/plugins/hooks/ExtractArchive.py +++ b/module/plugins/hooks/ExtractArchive.py @@ -50,7 +50,7 @@ class ExtractArchive(Hook): self.passwords = [] names = [] - for p in ("UnRar",): + for p in ("UnRar", "UnZip"): try: module = self.core.pluginManager.getInternalModule(p) klass = getattr(module, p) @@ -166,13 +166,14 @@ class ExtractArchive(Hook): self.logDebug("Passwords: %s" % str(passwords)) for pw in passwords + self.getPasswords(): try: + self.logDebug("Try password: %s" % pw) if plugin.checkPassword(pw): plugin.extract(progress, pw) self.addPassword(pw) success = True break except WrongPassword: - self.logDebug("Tried wrong password %s" % pw) + self.logDebug("Password was wrong") if not success: self.logError(basename(plugin.file), _("Wrong password")) |