summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-29 23:30:56 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-29 23:30:56 +0100
commit32b3cb9d9fa6851de35f52d01f78c26012043baa (patch)
treea3d07f508d51b6592f73b01387abcd0b9dca8274 /module/plugins
parent[ExtractArchive] Fix password recognition (diff)
downloadpyload-32b3cb9d9fa6851de35f52d01f78c26012043baa.tar.xz
[SevenZip] Repair not supported
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/internal/SevenZip.py6
-rw-r--r--module/plugins/internal/UnRar.py2
-rw-r--r--module/plugins/internal/UnZip.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/internal/SevenZip.py b/module/plugins/internal/SevenZip.py
index e808e0d88..6ba7cfc1f 100644
--- a/module/plugins/internal/SevenZip.py
+++ b/module/plugins/internal/SevenZip.py
@@ -11,7 +11,7 @@ from module.utils import fs_encode, save_join
class SevenZip(UnRar):
__name__ = "SevenZip"
- __version__ = "0.03"
+ __version__ = "0.04"
__description__ = """7-Zip extractor plugin"""
__license__ = "GPLv3"
@@ -75,6 +75,10 @@ class SevenZip(UnRar):
return p.returncode == 0
+ def repair(self):
+ return False
+
+
def extract(self, password=None):
command = "x" if self.fullpath else "e"
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index b8e2c3606..0738aa63b 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -8,7 +8,7 @@ from string import digits
from subprocess import Popen, PIPE
from module.plugins.internal.Extractor import Extractor, ArchiveError, CRCError, PasswordError
-from module.utils import decode, fs_encode, save_join, uniqify
+from module.utils import decode, fs_encode, save_join
def renice(pid, value):
diff --git a/module/plugins/internal/UnZip.py b/module/plugins/internal/UnZip.py
index 4f3f1ca32..a086d9db1 100644
--- a/module/plugins/internal/UnZip.py
+++ b/module/plugins/internal/UnZip.py
@@ -32,10 +32,6 @@ class UnZip(Extractor):
return [(filename, id) for filename, id in files_ids if cls.isArchive(filename)]
- def repair(self):
- return False
-
-
def extract(self, password=None):
try:
with zipfile.ZipFile(fs_encode(self.filename), 'r', allowZip64=True) as z: