summaryrefslogtreecommitdiffstats
path: root/pyload/network
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/network')
-rw-r--r--pyload/network/JsEngine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/network/JsEngine.py b/pyload/network/JsEngine.py
index 2e98fa37d..481a99a18 100644
--- a/pyload/network/JsEngine.py
+++ b/pyload/network/JsEngine.py
@@ -110,9 +110,9 @@ class AbstractEngine(object):
__name = ""
- def __init__(self):
+ def __init__(self, force=False):
self.setup()
- self.available = self.find()
+ self.available = True if force else self.find()
def setup(self):
@@ -126,7 +126,7 @@ class AbstractEngine(object):
__import__(cls.__name)
except Exception:
try:
- out, err = cls().eval("print(23+19)")
+ out, err = cls(True).eval("print(23+19)")
except Exception:
res = False
else: