diff options
Diffstat (limited to 'pyload/plugin/hook/Captcha9Kw.py')
-rw-r--r-- | pyload/plugin/hook/Captcha9Kw.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/hook/Captcha9Kw.py b/pyload/plugin/hook/Captcha9Kw.py index 9ceab4b2b..32aaba0f5 100644 --- a/pyload/plugin/hook/Captcha9Kw.py +++ b/pyload/plugin/hook/Captcha9Kw.py @@ -2,11 +2,10 @@ from __future__ import with_statement +import base64 import re import time -from base64 import b64encode - from pyload.network.HTTPRequest import BadHeader from pyload.network.RequestFactory import getURL @@ -121,7 +120,7 @@ class Captcha9Kw(Hook): 'source' : "pyload", 'base64' : "1", 'mouse' : 1 if task.isPositional() else 0, - 'file-upload-01': b64encode(data), + 'file-upload-01': base64.b64encode(data), 'action' : "usercaptchaupload"} for _i in xrange(5): |