summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 23:40:36 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 23:40:36 +0100
commitddca2529cf0ff79ea9e1721a15493407c23a57d9 (patch)
tree9397a603bf9fe410a3c4d048ec5aeb21ebe99615 /module
parent[ExtractArchive] Pre-final fixup (diff)
downloadpyload-ddca2529cf0ff79ea9e1721a15493407c23a57d9.tar.xz
Fix https://github.com/pyload/pyload/issues/1120
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/UnRar.py4
-rw-r--r--module/plugins/internal/UnZip.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index fbb1c6a3e..1b6816a9f 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -22,7 +22,7 @@ def renice(pid, value):
class UnRar(Extractor):
__name__ = "UnRar"
- __version__ = "1.06"
+ __version__ = "1.07"
__description__ = """Rar extractor plugin"""
__license__ = "GPLv3"
@@ -175,7 +175,7 @@ class UnRar(Extractor):
part = self.getattr(self, "re_rarpart%d" % i).search(name).group(1)
new_name = name[::-1].replace((".part%s.rar" % part)[::-1], ".part*.rar"[::-1], 1)[::-1]
- file = fs_encode(os.path.join(dir, new_name)
+ file = fs_encode(os.path.join(dir, new_name))
files.extend(glob(file))
diff --git a/module/plugins/internal/UnZip.py b/module/plugins/internal/UnZip.py
index 2ab9597ef..8093c1ba8 100644
--- a/module/plugins/internal/UnZip.py
+++ b/module/plugins/internal/UnZip.py
@@ -12,7 +12,7 @@ from module.utils import fs_encode
class UnZip(Extractor):
__name__ = "UnZip"
- __version__ = "1.05"
+ __version__ = "1.06"
__description__ = """Zip extractor plugin"""
__license__ = "GPLv3"
@@ -32,7 +32,7 @@ class UnZip(Extractor):
with zipfile.ZipFile(fs_encode(self.filename), 'r', allowZip64=True) as z:
z.setpassword(self.password)
- badfile = z.testzip():
+ badfile = z.testzip()
if not badfile:
z.extractall(self.out)