diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 02:44:03 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 03:22:38 +0200 |
commit | f8cf65d4271254dd89662cb6190adc5b426c6d2b (patch) | |
tree | 3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/plugin/hook/DeathByCaptcha.py | |
parent | 'from time' -> 'import time' and so on... (diff) | |
download | pyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz |
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/plugin/hook/DeathByCaptcha.py')
-rw-r--r-- | pyload/plugin/hook/DeathByCaptcha.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/hook/DeathByCaptcha.py b/pyload/plugin/hook/DeathByCaptcha.py index 670807bf5..ddcdeae8a 100644 --- a/pyload/plugin/hook/DeathByCaptcha.py +++ b/pyload/plugin/hook/DeathByCaptcha.py @@ -2,11 +2,11 @@ from __future__ import with_statement -import pycurl +import base64 import re import time -from base64 import b64encode +import pycurl from pyload.utils import json_loads from pyload.network.HTTPRequest import BadHeader @@ -139,7 +139,7 @@ class DeathByCaptcha(Hook): multipart = False with open(captcha, 'rb') as f: data = f.read() - data = "base64:" + b64encode(data) + data = "base64:" + base64.b64encode(data) res = self.api_response("captcha", {"captchafile": data}, multipart) |