summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-02-08 17:03:27 +0100
committerGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-02-09 23:36:28 +0100
commit25fc80b4e973049ff85122fefac9fbf8c2bf4c45 (patch)
tree4fb4485a445b8f39ba04f1273dba71d9cc38fc92
parent[ExtractArchive] correct fullpath behavior, bugfix (diff)
downloadpyload-25fc80b4e973049ff85122fefac9fbf8c2bf4c45.tar.xz
[ExtractArchive] don't try '' as password
-rw-r--r--module/plugins/hooks/ExtractArchive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 6c0177ae9..a0c0ca366 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -104,7 +104,7 @@ class ArchiveQueue(object):
class ExtractArchive(Hook):
__name__ = "ExtractArchive"
__type__ = "hook"
- __version__ = "1.27"
+ __version__ = "1.28"
__config__ = [("activated" , "bool" , "Activated" , True ),
("fullpath" , "bool" , "Extract with full paths" , True ),
@@ -392,7 +392,7 @@ class ExtractArchive(Hook):
if not encrypted or not self.getConfig("usepasswordfile"):
archive.extract(password)
else:
- for pw in uniqify([password] + self.getPasswords(False)):
+ for pw in filter(None, uniqify([password] + self.getPasswords(False))):
try:
self.logDebug("Try password: %s" % pw)