summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/captcha
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:44:03 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:38 +0200
commitf8cf65d4271254dd89662cb6190adc5b426c6d2b (patch)
tree3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/plugin/captcha
parent'from time' -> 'import time' and so on... (diff)
downloadpyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/plugin/captcha')
-rw-r--r--pyload/plugin/captcha/ReCaptcha.py5
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)