diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-04-03 18:22:47 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-04-03 18:22:47 +0200 |
commit | 440733c1d96249a66e7f5d1bde1fd54770af0d56 (patch) | |
tree | 3fa0dd50ffb85c83644c9c521d3e34b2514ba485 /module/plugins | |
parent | Merge pull request #58 from thargor/stable (diff) | |
download | pyload-440733c1d96249a66e7f5d1bde1fd54770af0d56.tar.xz |
avoid regexp to check progress
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/UnRar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py index ef31fbae2..f11a49854 100644 --- a/module/plugins/internal/UnRar.py +++ b/module/plugins/internal/UnRar.py @@ -22,6 +22,7 @@ import re from os.path import join from glob import glob from subprocess import Popen, PIPE +from string import digits from module.utils import save_join, decode from module.plugins.internal.AbstractExtractor import AbtractExtractor, WrongPassword, ArchiveError, CRCError @@ -129,7 +130,7 @@ class UnRar(AbtractExtractor): progress(int(progressstring)) progressstring = "" # not reading a digit -> therefore restart - elif re.match('[0-9]',c) is None: + elif c not in digits: progressstring = "" # add digit to progressstring else: |