summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hook/BypassCaptcha.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hook/BypassCaptcha.py')
-rw-r--r--pyload/plugin/hook/BypassCaptcha.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/hook/BypassCaptcha.py b/pyload/plugin/hook/BypassCaptcha.py
index 95be5f3a6..8e8a27d8c 100644
--- a/pyload/plugin/hook/BypassCaptcha.py
+++ b/pyload/plugin/hook/BypassCaptcha.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from pycurl import FORM_FILE, LOW_SPEED_TIME
+import pycurl
from pyload.network.HTTPRequest import BadHeader
from pyload.network.RequestFactory import getURL, getRequest
@@ -58,14 +58,14 @@ class BypassCaptcha(Hook):
req = getRequest()
# raise timeout threshold
- req.c.setopt(LOW_SPEED_TIME, 80)
+ req.c.setopt(pycurl.LOW_SPEED_TIME, 80)
try:
res = req.load(self.SUBMIT_URL,
post={'vendor_key': self.PYLOAD_KEY,
'key': self.getConfig('passkey'),
'gen_task_id': "1",
- 'file': (FORM_FILE, captcha)},
+ 'file': (pycurl.FORM_FILE, captcha)},
multipart=True)
finally:
req.close()