summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/CaptchaBrotherhood.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-16 17:31:38 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:40:32 +0200
commitc1764e2fea0bb05164c83a876e8cd58b97f58f25 (patch)
treebe1af8dbf5542d93f1cb97f07dd1793fc7acc2df /module/plugins/hooks/CaptchaBrotherhood.py
parent[SimpleHoster] fixurl (diff)
downloadpyload-c1764e2fea0bb05164c83a876e8cd58b97f58f25.tar.xz
Update all
Diffstat (limited to 'module/plugins/hooks/CaptchaBrotherhood.py')
-rw-r--r--module/plugins/hooks/CaptchaBrotherhood.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/CaptchaBrotherhood.py b/module/plugins/hooks/CaptchaBrotherhood.py
index 1f2bbf956..3992c6ca7 100644
--- a/module/plugins/hooks/CaptchaBrotherhood.py
+++ b/module/plugins/hooks/CaptchaBrotherhood.py
@@ -12,7 +12,7 @@ try:
except ImportError:
import Image
-from module.network.RequestFactory import getURL, getRequest
+from module.network.RequestFactory import getRequest
from module.plugins.internal.Hook import Hook, threaded
@@ -59,7 +59,7 @@ class CaptchaBrotherhood(Hook):
def getCredits(self):
- res = getURL(self.API_URL + "askCredits.aspx",
+ res = self.load(self.API_URL + "askCredits.aspx",
get={"username": self.getConfig('username'), "password": self.getConfig('passkey')})
if not res.startswith("OK"):
raise CaptchaBrotherhoodException(res)
@@ -122,7 +122,7 @@ class CaptchaBrotherhood(Hook):
def api_response(self, api, ticket):
- res = getURL("%s%s.aspx" % (self.API_URL, api),
+ res = self.load("%s%s.aspx" % (self.API_URL, api),
get={"username": self.getConfig('username'),
"password": self.getConfig('passkey'),
"captchaID": ticket})