summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnRar.py
diff options
context:
space:
mode:
authorGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-03-23 00:32:56 +0100
committerGravatar Jens Hörnlein <jens.hoernlein@googlemail.com> 2015-03-23 00:32:56 +0100
commitd0ef13775925f15811d2a6744d29190c313b3820 (patch)
treed969b5417e929b555e8a24acc5ac59a4a9345507 /module/plugins/internal/UnRar.py
parent[UpdateManager] Fix https://github.com/pyload/pyload/issues/1274 (diff)
downloadpyload-d0ef13775925f15811d2a6744d29190c313b3820.tar.xz
[ExtractArchive] extract archive even if first part is not in package
Diffstat (limited to 'module/plugins/internal/UnRar.py')
-rw-r--r--module/plugins/internal/UnRar.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index 2ba6ff90d..b75e21f57 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.16"
+ __version__ = "1.17"
__description__ = """Rar extractor plugin"""
__license__ = "GPLv3"
@@ -82,8 +82,7 @@ class UnRar(Extractor):
def isMultipart(cls, filename):
multipart = cls.re_multipart.search(filename)
if multipart:
- # First Multipart file (part1.rar for *.part1-9.rar format or *.rar for .r1-9 format) handled as normal Archive
- return False if (multipart.group(1) == "part" and int(multipart.group(2)) == 1 and not multipart.group(3)) else True
+ return True if not multipart.group(3) else False
return False