From 899785de1db6d580a546bbca5aecc1246c2a9b12 Mon Sep 17 00:00:00 2001 From: Arno-Nymous Date: Mon, 2 May 2016 19:28:29 +0200 Subject: [UnRar] Fix problem with password protected archives Some tiny error in a regular expression caused unexpected behavior with password protected archives --- module/plugins/internal/UnRar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py index 07f3b0f23..3b1d7b290 100644 --- a/module/plugins/internal/UnRar.py +++ b/module/plugins/internal/UnRar.py @@ -28,7 +28,7 @@ class UnRar(Extractor): _RE_PART = re.compile(r'\.(part|r)\d+(\.rar|\.rev)?(\.bad)?', re.I) _RE_FIXNAME = re.compile(r'Building (.+)') - _RE_FILES = re.compile(r'^(.)(\s*[\w\-.]+)\s+(\d+\s+)+(?:\d+\%\s+)?[\d\-]{8}\s+[\d\:]{5}', re.I | re.M) + _RE_FILES = re.compile(r'^(.)(\s*[\w\-.]+)\s+(\d+\s+)+(?:\d+\%\s+)?[\d\-]{8,}\s+[\d\:]{5}', re.I | re.M) _RE_BADPWD = re.compile(r'password', re.I) _RE_BADCRC = re.compile(r'encrypted|damaged|CRC failed|checksum error|corrupt', re.I) _RE_VERSION = re.compile(r'(?:UN)?RAR\s(\d+\.\d+)', re.I) -- cgit v1.2.3