summaryrefslogtreecommitdiffstats
path: root/module/pyunrar.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-22 19:54:00 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-22 19:54:00 +0200
commit5a7b72bd128b026446edd57c5bd5c21d75935e80 (patch)
tree73240eb6d1a0a34abd8bbb0eae09b9f5fd7be7a5 /module/pyunrar.py
parentwin compability (diff)
downloadpyload-5a7b72bd128b026446edd57c5bd5c21d75935e80.tar.xz
win unrar fixes
Diffstat (limited to 'module/pyunrar.py')
-rw-r--r--module/pyunrar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/pyunrar.py b/module/pyunrar.py
index 2ce8a846f..b39c176d6 100644
--- a/module/pyunrar.py
+++ b/module/pyunrar.py
@@ -126,7 +126,7 @@ class Unrar():
infos = {}
nameLine = False
name = ""
- for line in o.split("\n"):
+ for line in o.splitlines():
if line == "-"*79:
inList = not inList
continue
@@ -343,7 +343,7 @@ class Unrar():
perc = int(tperc)
statusFunction(perc)
elif count >= 3:
- if tmp == "\n":
+ if tmp in ("\r","\n","\r\n"):
count = 0
elif tmp in digits:
tperc += tmp