summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/extractor
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 17:20:59 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 17:20:59 +0200
commite00ef98491f79ae8aa972ae1473dae4a7b78c07e (patch)
tree31be0c7cdcebb61525bcc387bcf15d265a1c494a /pyload/plugin/extractor
parentFix except (diff)
downloadpyload-e00ef98491f79ae8aa972ae1473dae4a7b78c07e.tar.xz
Cleanup
Diffstat (limited to 'pyload/plugin/extractor')
-rw-r--r--pyload/plugin/extractor/SevenZip.py3
-rw-r--r--pyload/plugin/extractor/UnRar.py4
-rw-r--r--pyload/plugin/extractor/UnZip.py2
3 files changed, 8 insertions, 1 deletions
diff --git a/pyload/plugin/extractor/SevenZip.py b/pyload/plugin/extractor/SevenZip.py
index 71b288ab0..7cf6aee35 100644
--- a/pyload/plugin/extractor/SevenZip.py
+++ b/pyload/plugin/extractor/SevenZip.py
@@ -38,6 +38,8 @@ class SevenZip(UnRar):
@classmethod
+
+
def isUsable(cls):
if os.name == "nt":
cls.CMD = os.path.join(pypath, "7z.exe")
@@ -68,7 +70,6 @@ class SevenZip(UnRar):
raise CRCError(err)
-
def check(self, password):
p = self.call_cmd("l", "-slt", fs_encode(self.filename))
out, err = p.communicate()
diff --git a/pyload/plugin/extractor/UnRar.py b/pyload/plugin/extractor/UnRar.py
index cad58ff4f..32d33bc51 100644
--- a/pyload/plugin/extractor/UnRar.py
+++ b/pyload/plugin/extractor/UnRar.py
@@ -49,6 +49,8 @@ class UnRar(Extractor):
@classmethod
+
+
def isUsable(cls):
if os.name == "nt":
try:
@@ -80,6 +82,8 @@ class UnRar(Extractor):
@classmethod
+
+
def isMultipart(cls, filename):
return True if cls.re_multipart.search(filename) else False
diff --git a/pyload/plugin/extractor/UnZip.py b/pyload/plugin/extractor/UnZip.py
index b4fa637f0..5e93064c2 100644
--- a/pyload/plugin/extractor/UnZip.py
+++ b/pyload/plugin/extractor/UnZip.py
@@ -25,6 +25,8 @@ class UnZip(Extractor):
@classmethod
+
+
def isUsable(cls):
return sys.version_info[:2] >= (2, 6)