summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-09 17:28:34 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-09 17:28:34 +0100
commit89b5cafa4e435d1b42b6bbfadd6c5c38dc9ab970 (patch)
treedaef576713c877f610283884df512d36bf250254 /module
parent[ExternalScripts] Fixup (diff)
downloadpyload-89b5cafa4e435d1b42b6bbfadd6c5c38dc9ab970.tar.xz
[UnRar] Fix https://github.com/pyload/pyload/issues/1234
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/UnRar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index baa5d3115..45e1640bf 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.15"
+ __version__ = "1.16"
__description__ = """Rar extractor plugin"""
__license__ = "GPLv3"
@@ -59,17 +59,17 @@ class UnRar(Extractor):
except OSError:
cls.CMD = os.path.join(pypath, "UnRAR.exe")
- p = Popen([cls.CMD], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ p = subprocess.Popen([cls.CMD], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
else:
try:
- p = Popen(["rar"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ p = subprocess.Popen(["rar"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
cls.__name__ = "RAR"
cls.REPAIR = True
except OSError: #: fallback to unrar
- p = Popen([cls.CMD], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ p = subprocess.Popen([cls.CMD], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
m = cls.re_version.search(out)
@@ -244,5 +244,5 @@ class UnRar(Extractor):
self.manager.logDebug(" ".join(call))
- p = Popen(call, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ p = subprocess.Popen(call, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return p