diff options
Diffstat (limited to 'pyload/plugin/captcha/ReCaptcha.py')
-rw-r--r-- | pyload/plugin/captcha/ReCaptcha.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/captcha/ReCaptcha.py b/pyload/plugin/captcha/ReCaptcha.py index dc431f2ea..37da91a58 100644 --- a/pyload/plugin/captcha/ReCaptcha.py +++ b/pyload/plugin/captcha/ReCaptcha.py @@ -1,12 +1,11 @@ # -*- coding: utf-8 -*- +import base64 import random import re import time import urlparse -from base64 import b64encode - from pyload.plugin.Captcha import Captcha @@ -176,7 +175,7 @@ class ReCaptcha(Captcha): get={'c':token3.group(1), 'k':key}, cookies=True, forceUser=True) - response = b64encode('{"response":"%s"}' % captcha_response) + response = base64.b64encode('{"response":"%s"}' % captcha_response) self.logDebug("Result: %s" % response) |