summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnZip.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 18:45:17 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-18 18:45:17 +0100
commitda9e6c949243613f4d5e100cac6ff192449b4718 (patch)
tree5c9d96913d8a86a822821f781ab209105e426489 /module/plugins/internal/UnZip.py
parentUpdate checkFile routine in some hoster plugins (diff)
downloadpyload-da9e6c949243613f4d5e100cac6ff192449b4718.tar.xz
Update extractor plugins
Diffstat (limited to 'module/plugins/internal/UnZip.py')
-rw-r--r--module/plugins/internal/UnZip.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/internal/UnZip.py b/module/plugins/internal/UnZip.py
index 52e279ccf..81c298784 100644
--- a/module/plugins/internal/UnZip.py
+++ b/module/plugins/internal/UnZip.py
@@ -8,20 +8,21 @@ from module.plugins.internal.AbstractExtractor import AbtractExtractor, WrongPas
class UnZip(AbtractExtractor):
__name__ = "UnZip"
- __version__ = "0.11"
+ __version__ = "0.12"
__description__ = """Zip extractor plugin"""
__license__ = "GPLv3"
- __authors__ = [("RaNaN", "RaNaN@pyload.org")]
+ __authors__ = [("RaNaN", "RaNaN@pyload.org"),
+ ("Walter Purcaro", "vuolter@gmail.com")]
- @staticmethod
- def checkDeps():
+ @classmethod
+ def checkDeps(cls):
return sys.version_info[:2] >= (2, 6)
- @staticmethod
- def getTargets(files_ids):
+ @classmethod
+ def getTargets(cls, files_ids):
result = []
for file, id in files_ids:
@@ -31,7 +32,7 @@ class UnZip(AbtractExtractor):
return result
- def extract(self, progress, password=None):
+ def extract(self, progress, password=""):
try:
z = zipfile.ZipFile(self.file)
self.files = z.namelist()